Versions Compared

Key

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

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

    Code Block
    languagescala
    title

...

  1. Incoming file log
    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


    Code Block
    languagescala
    title

...

  1. Execution Log file

...

  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.executor.

...

  1. 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