Modifying logging in your Discovery Framework components

There are two ways to modify logging for your Discovery Framework components.

From a developer's perspective, you will most frequently need to adjust a logging verbosity level for a given class or class hierarchy. The easiest way to do this is through the Liferay Control Panel. If you need to modify logging in a more complex manner, or want to change default settings, you can modify the portal-log4j-ext.xml.

Both of these methods are described in this section.

Note: Using either of these methods causes Liferay to adjust the log verbosity for both log4j and the Java Utility Logging Implementation (JULI). Code using either of these loggers should respect this configuration.