Overview
As an administrator of a Liferay Portal server, you may be required to trace the behaviour of one or more services for a live instance.
This article outlines the steps for enabling or disabling logging categories which typically represent a component or service within Liferay Portal.
The output from the logging system (i.e. Apache Log4j) is typically written to standard output, which is normally routed to the web or app server's log files
e.g.
- LIFERAY_HOME/logs/liferay.log
- LIFERAY_HOME/tomcat-xxx/logs/catalina.out
Enable Logging
To enable logging on a live Liferay Portal server, follow these steps :
1/ Navigate to Control Panel > Server Administration as admin user
2/ Select "Log Level" tab
3/ Select "Add Category" tab
4/ Enter category name in text field
eg.
com.liferay.portlet.InvokerPortletImpl
5/ Select required logging level from pick list
eg.
DEBUG, INFO, WARN, ERROR or FATAL
6/ Click Save button
Disable Logging
To disable logging on a live Liferay Portal server, follow these steps :
1/ Navigate to Control Panel > Server Administration as admin user
2/ Select "Log Level" tab
3/ Select "Update Category" tab
4/ Enter category name in text field and click search
eg.
com.liferay.portlet.InvokerPortletImpl
5/ Find matching categories in results list
6/ Select required logging level from pick list for each category
eg.
DEBUG, INFO, WARN, ERROR or FATAL
7/ Click Save button
Related Articles
References
- Liferay Portal 6.1 - User Guide - Liferay’s Logging System
- Liferay Portal 6.2 - User Guide - Liferay’s Logging System

