Versions Compared

Key

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

Sometimes you may want more information about the processing of an email than you get from the Auditing report. Additional information can be configured to be logged out to a file. There are 2 methods for enabling logging:

Table of Contents
maxLevel2
excludeRelated Articles

Output to a dedicated log file

Pre Jira 9.5.0 Log4j2 properties configuration

Status
colourGreen
titlerecommended
Status
colourBlue
titlerestart required

With the following configuration, Jira will create a jemhsu.log file in JIRA_HOME/log.  A Jira restart will be required to make the changes apply.

...

Info

Changing the amount of data logged

The steps above set logging to the default level (DEBUG). This means that all extra information will be saved to the log file. To reduce the amount of logging, the level can be changed. Changing the level requires a Jira restart. The following levels can be set:

  • DEBUG (most information)

  • INFO

  • WARN

  • ERROR (least information)

Note

Using Jira 5?

Jira 5 needs the first line to be: log4j.appender.JEMHFileLog=com.atlassian.jira.logging.MultiTenantJiraHomeAppender
Note

Using Jira 9

Jira 9 needs the ‘log4j.appender.JEMHFileLog.layout’ to be set as:

log4j.appender.JEMHFileLog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout

Jira 9.5.0 and above Log4j2 XML configuration

...

Status
colourBlue
titlerestart required

...