Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For information on viewing the contents of the logs, see Application Logs and System Logs.

Info

Follow the instructions below to set up logging.

...

  • Logger - The name of a logger.
  • Parent Logger - The name of a parent logger.
  • Level - Allows to select level (threshold) from the drop-down menu. After you specify the level for a certain logger, a log request for that logger will only be enabled if its level is equal or higher to the logger’s one. If a given logger is not assigned a level, then it inherits one from its closest ancestor with an assigned level. See hierarchy of levels above.
  • Additivity - Allows to inherit all the appenders of the parent Logger if set as "True."

Example

Use the following procedure to enable logs to view HTTP headers and messages:

  1. In the Filter Loggers by field, enter wire and then click Containsorg.apache.synapse.transport.http.wire will be displayed under Logger.
  2. Change the level of this logger to DEBUG.
  3. Search for the org.apache.synapse.transport.http.headers logger and change the level to DEBUG.

Alternatively, you can uncomment the entry for the two loggers as follows:

  1. Go to the <ESB_Home>/repository/conf directory and open the log4j.properties file with a text editor.
  2. Edit the entries for the two loggers as follows:
    #log4j.logger.org.apache.synapse.transport.http.headers=DEBUG
    #log4j.logger.org.apache.synapse.transport.http.wire=DEBUG 
  3. Save the changes.