Setting up the EMQ Logfile

Preferred method (requires Jira restart)

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 to restart!

Remember that JIRA must be restarted for the changes to the log4j.properties file to be applied

Alternative method (no restart required)

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.

  1. Go to Jira Administration>System and open the Logging and profiling section

  2. Under Default Loggers, click the Configure logging level for another package link

  3. Enter com.thepluginpeople.jira.emq as the package name, and set the Logging Level to DEBUG

  4. Click the Add button to save the configuration

  5. You should now see EMQ log output appear in the attlasian-jira.log file at certain times, for example when processing an issue event