Versions Compared

Key

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

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:

Code Block
# ---------------------
#
#  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
#
# --------------------


Note
titleRemember 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 will is a temporary way to append EMQ logging into JIRA's own atlassian-jira.log file.  This may make 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 Jira will output its own messages here, polluting the EMQ 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

Page Tree
startDepth2
searchBoxtrue