Foros de discusión

slf4j logging

Eric Soucy, modificado hace 9 años.

slf4j logging

Junior Member Mensajes: 65 Fecha de incorporación: 21/01/14 Mensajes recientes
Hi,
I m trying to apply this
https://www.liferay.com/fr/web/denis-signoretto/blog/-/blogs/using-slf4j-and-liferay-logging-framework-in-custom-plugins#mkiy_message_38994123

so that my jsf portlet logs in it's own log file.
I can't seem to make it work.
Is it ok to do this?

If not what is the best practice for logging from a jsf portlet's managed beans?

Thank you
thumbnail
David H Nebinger, modificado hace 9 años.

RE: slf4j logging

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Well honestly you can use log4j or slf4j in your portlet at your will. Make sure you have the necessary jars and configuration files.

The Liferay way, however, is to use Liferay's log classes. You don't really get a separate log file, but you can manage the logging from within the control panel (to control verbosity).
thumbnail
Kyle Joseph Stiemann, modificado hace 9 años.

Moved.

Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
Moved to Liferay Faces - English Category.

- Kyle