Is there a way to set Liferay's global logging level? I am aware of it's console in the Server Administration but I want to set a global level not to a package level.
Thanks!
Because of the way log4j can be configured, any global setting can be overridden by a package level setting.
You can remove any configuration individual packages (if you have any). Then the setting for the rootLogger
will take effect.
log4j.rootLogger=INFO, stdout
Update
To override Liferay's default logging settings, you can create a portal-log4j-ext.xml. Just define a logger for the package com.liferay
and you should be good to go.
Fixed it by unpacking portal-impl.jar found in $server/applications/liferay-portal/WEB-INF/lib and replacing the contents of META-INF/portal-log4j.xml with my requirements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With