Permanent Logging
Steps
- Edit <JIRA INSTALL DIRECTORY>/atlassian-jira/WEB-INF/classes/log4j.properties file.
In the end of the file paste in these two log sections
Incoming file loglog4j.appender.ihubincomingfilelog=com.atlassian.jira.logging.JiraHomeAppender log4j.appender.ihubincomingfilelog.File=ihub-incoming.log log4j.appender.ihubincomingfilelog.MaxFileSize=20480KB log4j.appender.ihubincomingfilelog.MaxBackupIndex=5 log4j.appender.ihubincomingfilelog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout log4j.appender.ihubincomingfilelog.layout.ConversionPattern=%d [%p] %c{1}:%M() - %m%n log4j.logger.se.rixter.jira.restful.integrator.incoming.RuleService=INFO, ihubincomingfilelog log4j.additivity.se.rixter.jira.restful.integrator.incoming.RuleService = false
Execution Log filelog4j.appender.ihubexecutionfilelog=com.atlassian.jira.logging.JiraHomeAppender log4j.appender.ihubexecutionfilelog.File=ihub-execution.log log4j.appender.ihubexecutionfilelog.MaxFileSize=20480KB log4j.appender.ihubexecutionfilelog.MaxBackupIndex=5 log4j.appender.ihubexecutionfilelog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout log4j.appender.ihubexecutionfilelog.layout.ConversionPattern=%d [%p] %c{1}:%M() - %m%n log4j.logger.se.rixter.jira.restful.integrator.executor.log.ExecutionLogService=INFO, ihubexecutionfilelog log4j.additivity.se.rixter.jira.restful.integrator.executor.log.ExecutionLogService = false
- 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