...
- Manually editing the
log4j.properties
file. - Configure logging through the management console. This option is only available if the Logging Management feature is installed in your product.See Logging Management Feature.
Using the management console to configure logging is recommended because all changes made to log4j through the management console persist in the WSO2 Registry. Therefore, those changes will be available after the server restarts and these changes will get priority over what is defined in the actual log4j.properties
file. Also, note that the logging configuration you define using the management console will apply at run time. However, if you modify the log4j.properties
file and restart the server, the earlier log4j configuration that persisted in the registry will be overwritten. There is also an option in the management console to restore the original log4j configuration from the log4j.properties
file.
...