There are two ways of configuring log4j loggingLogging in WSO2 API Manager. You can manually edit the log4j.properties
file or configure logging through the management console. Configuration made through the management console can be persisted in the WSO2 registry so that it is available even after the server restarts. There is also an option to restore the original Log4j configuration from the log4j.properties
file using the management console. However, if you modify the log4j.properties
file and restart the server, the earlier log4j configuration persisted in the registry is overwritten.
...
For information on viewing the contents of the logs, see Application Logs and System Logs.
Configure Logging
Follow the instructions below to set up logging.
...
- Log Level - Reflects a minimum level that this logger cares about. You can view the hierarchy of levels belowlevels below.
- Log Pattern - Defines the output format of the log file.
...