Logging Management

# Configure Logging

This page shows the existing Log4j2 configuration. It also allows you to modify existing configuration. You can either modify the log level of existing logger or add a new logger.

## Configuring Log4J2 Loggers

Configuring properties related to Log4J2 loggers.

1. In the loggers list, you can check available loggers and the corresponding log level. The available categories of log levels are,

INFO - Information messages WARN - Warning messages ERROR - Error messages DEBUG - Debug messages TRACE - Trace messages FATAL - Fatal error messages

2. Select a Log Level (only the messages at that level and below will be logged).
   - For example, if you select Log Level ERROR, then all ERROR and FATAL messages will be logged.

3. You can also filter logs according to the logger name.

Figure 1: Monitor Logs

## Configuring Log4J2 logger

Log4J2 logger consist of the logger name, logger class and log level.

To add a new logger you need to provide the following,

1. Logger name
2. Logger class
3. Log level
4. Click Update.

Figure 2: Configure Log4J2 logger

There are two ways of configuring Log4J2 in WSO2 Carbon. Either by manually editing the log4j2.properties file or through the management console. Changes you made to Log4j2 configuration through the management console are written to log4j2.properties file, therefore those changes will be available after server restarts.