Versions Compared

Key

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

...

Temporary Logging

...

  1. Goto System

  2. Select System support > Logging and profiling to open the Logging page, which lists all defined log4j categories (as package names) and their current logging levels

  3. Click on Configure to add logging for our classes

  4. Put se.rixter for the Package name and DEBUG for the Logging level

  5. Reproduce the issue

  6. Send us with a support zip as outlined at https://confluence.atlassian.com/support/create-a-support-zip-790796819.html;

Permanent Logging

Steps

  1. Edit  <JIRA INSTALL DIRECTORY>/atlassian-jira/WEB-INF/classes/log4j.properties file.

...

  1. In the end of the file paste in these two log sections

    Incoming file log

    Code Block
    languagescala

...

  1. log4j.appender.

...

  1. ihubincomingfilelog=com.atlassian.jira.logging.JiraHomeAppender
    log4j.appender.

...

  1. ihubincomingfilelog.File=ihub-

...

  1. incoming.log
    log4j.appender.

...

  1. ihubincomingfilelog.MaxFileSize=20480KB
    log4j.appender.

...

  1. ihubincomingfilelog.MaxBackupIndex=5
    log4j.appender.

...

  1. ihubincomingfilelog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout
    log4j.appender.

...

  1. ihubincomingfilelog.layout.ConversionPattern=%d [%p] %c{1}:%M() - %m%n
    log4j.logger.se.rixter.jira.restful.integrator.

...

  1. incoming.

...

  1. RuleService=INFO, 

...

  1. ihubincomingfilelog
    log4j.additivity.se.rixter.jira.restful.integrator.

...

  1. incoming.

...

  1. RuleService = false

    Execution Log file

    Code Block
    languagescala

...

  1. log4j.appender.

...

  1. ihubexecutionfilelog=com.atlassian.jira.logging.JiraHomeAppender
    log4j.appender.

...

  1. ihubexecutionfilelog.File=ihub-

...

  1. execution.log
    log4j.appender.

...

  1. ihubexecutionfilelog.MaxFileSize=20480KB
    log4j.appender.

...

  1. ihubexecutionfilelog.MaxBackupIndex=5
    log4j.appender.

...

  1. ihubexecutionfilelog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout
    log4j.appender.

...

  1. ihubexecutionfilelog.layout.ConversionPattern=%d [%p] %c{1}:%M() - %m%n
    log4j.logger.se.rixter.jira.restful.integrator.executor.

...

  1. log.

...

  1. ExecutionLogService=INFO, 

...

  1. ihubexecutionfilelog
    log4j.additivity.se.rixter.jira.restful.integrator.

...

  1. executor.log.

...

  1. ExecutionLogService = false

...

  1. Restart JIRA after adding these entries to make it apply.

iHub will then produce these two logs:

  • <JIRA_HOME>/log/

...

  • ihub-

...

  • execution.log

  • <JIRA_HOME>/log/

...

  • ihub-

...

  • incoming.log