Add the following to your JIRA_INSTALL/atlassian-jira/WEB-INF/classes/log4j.properties file and reboot JIRA, after which time, EMQ specific logging will be written to JIRA_HOME/log/emq.log
file:
# --------------------- # # EMQ LOGGING STARTS # log4j.appender.EMQFileLog=com.atlassian.jira.logging.JiraHomeAppender log4j.appender.EMQFileLog.File=emq.log log4j.appender.EMQFileLog.MaxFileSize=20480KB log4j.appender.EMQFileLog.MaxBackupIndex=5 log4j.appender.EMQFileLog.layout=org.apache.log4j.PatternLayout log4j.appender.EMQFileLog.layout.ConversionPattern=%d %t %p [%c{4}] %m%n log4j.appender.EMQFileLog.Threshold=DEBUG log4j.logger.com.thepluginpeople.jira.emq=DEBUG, EMQFileLog log4j.additivity.com.thepluginpeople.jira.emq=false # # EMQ LOGGING ENDS # # -------------------- |
Remember that JIRA must be restarted for the changes to the |
The following method is a temporary way to append EMQ logging into JIRA's own atlassian-jira.log file. If Jira is restarted, logging added in this way will cease to work.
This method is less desired by ourselves as it makes it harder to see what is happening as EMQ output will be mixed with Jira output.