Foren

slf4j logging

Eric Soucy, geändert vor 9 Jahren.

slf4j logging

Junior Member Beiträge: 65 Beitrittsdatum: 21.01.14 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: slf4j logging

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 9 Jahren.

Moved.

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
Moved to Liferay Faces - English Category.

- Kyle