Skip to end of metadata
Go to start of metadata

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

The 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:

OpenEJB.level = WARNING
OpenEJB.options.level = WARNING
OpenEJB.server.level = WARNING
OpenEJB.startup.level = WARNING
OpenEJB.startup.service.level = WARNING
OpenEJB.startup.config.level = WARNING
OpenEJB.hsql.level = INFO
OpenEJB.rs.level = INFO
OpenEJB.ws.level = INFO
OpenEJB.tomcat.level = INFO
CORBA-Adapter.level = WARNING
Transaction.level = WARNING
org.apache.activemq.level = SEVERE
org.apache.geronimo.level = SEVERE
openjpa.level = WARNING
OpenEJB.cdi.level = WARNING
org.apache.webbeans.level = WARNING
org.apache.openejb.level = WARNING
  • No labels