logback*.xml Files for OAuth

Use the following configuration files:

  • logback.xml for the main log
  • logback-access.xml for the request/response log

Note: For bug reporting, edit logback.xml and set logger level to "trace".

You find these files in your OAuth installation on Tomcat in <Tomcat installation path>\webapps\oauth-server\WEB-INF\classes\config.

Note: Some configuration files are delivered with the extension ".sample" to ensure that your existing configuration files will not be overwritten when you update your components. If a configuration file has this extension, remove it from the file name. Otherwise, the configuration will not go into effect.

The following are the parameters in both the logback.xml and the logback-access.xml.

Name

Description

XML Element

Current log location

Name of the current on-going log file

/configuration/.../file

Default: <Tomcat installation path>/logs/oauth-server.log

Archived log location

Archived log location and file name pattern

/configuration/.../fileNamePattern

Default: <Tomcat installation path>/logs/oauth-server*.log

Max History

The number of archived logs to be kept

/configuration/.../maxHistory

Default: 30

Loggers

Log level for special package

/configuration/logger

Default: level="info"

Note: For bug reporting change this to level="trace".

Root level

Default log level of all loggers

/configuration/root

Default: level="warn"

Appenders

Log appenders

/configuration/root/appender-ref

Defaults:

ref="CONSOLE"

ref="FILE"