掲示板

slf4j logging

9年前 に Eric Soucy によって更新されました。

slf4j logging

Junior Member 投稿: 65 参加年月日: 14/01/21 最新の投稿
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
9年前 に David H Nebinger によって更新されました。

RE: slf4j logging

Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
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
9年前 に Kyle Joseph Stiemann によって更新されました。

Moved.

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
Moved to Liferay Faces - English Category.

- Kyle