All WSO2 products are shipped with the log4j logging capabilities, which generates administrative activities and server side logs. There are two ways of configuring how logging works in your server: by using the management console or by manually updating the configuration files.
Given below are some instructions on how to configure logging using configuration files in WSO2 AS.
Updating the log4j.properties file
log4j.properties file, which governs how logging is performed by the server can be found in the
<PRODUCT_HOME>/repository/conf directory. All the logging configurations that you enable using the management console can be manually configured in this configuration file.
Updating the log levels for JavaEE
From AS 5.3.0 onwards, you can enable JavaEE as a runtime in your server. Thereby, if you want to change the log levels of web apps deployed in the JavaEE runtime, you need to configure the relevant log levels in the
<AS_HOME>/repository/conf/etc/logging-bridge.properties file. The default levels given in this file are as follows: