Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Temporary Logging

  1. Go to JIRA Administration>System>Logging and profiling

  2. Under Default Loggers, click "configure logging level for another package"

  3. For Package name enter com.riadalabs.jira.plugins.notificationassistant

  4. For Logging Level select DEBUG

  5. Press Add to save

  6. Email log output will now be added to JIRA's own atlassian-jira.log file

Permanent Logging

Add the following to your <JIRA INSTALL DIRECTORY>/atlassian-jira/WEB-INF/classes/log4j.properties file. Changes to this file require a restart of Jira for the changes to take effect.

# ---------------------
#
#  NAFJ LOGGING STARTS
#

# Email logger
#
log4j.appender.NAFJEmailLog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.NAFJEmailLog.File=nafj-email.log
log4j.appender.NAFJEmailLog.MaxFileSize=20480KB
log4j.appender.NAFJEmailLog.MaxBackupIndex=5
log4j.appender.NAFJEmailLog.layout=org.apache.log4j.PatternLayout
log4j.appender.NAFJEmailLog.layout.ConversionPattern=%d %t %p [%c{4}] %m%n
log4j.appender.NAFJEmailLog.Threshold=INFO

# Notification Manager logger
#
log4j.appender.NAFJManagerLog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.NAFJManagerLog.File=nafj-manager.log
log4j.appender.NAFJManagerLog.MaxFileSize=20480KB
log4j.appender.NAFJManagerLog.MaxBackupIndex=5
log4j.appender.NAFJManagerLog.layout=org.apache.log4j.PatternLayout
log4j.appender.NAFJManagerLog.layout.ConversionPattern=%d %t %p [%c{4}] %m%n
log4j.appender.NAFJManagerLog.Threshold=INFO

#
# add entries for all NAFJ packages
#
log4j.logger.com.riadalabs.jira.plugins.notificationassistant.NotificationEmailHandlerImpl=INFO, NAFJEmailLog
log4j.additivity.com.riadalabs.jira.plugins.notificationassistant.NotificationEmailHandlerImpl=false
log4j.logger.com.riadalabs.jira.plugins.notificationassistant.NotificationManagerImpl=INFO, NAFJManagerLog
log4j.additivity.com.riadalabs.jira.plugins.notificationassistant.NotificationManagerImpl=false

#
#  NAFJ LOGGING ENDS
#
# --------------------

The logs will be at:

  • <JIRA_HOME>/log/nafj-email.log
  • <JIRA_HOME>/log/nafj-manager.log
  • No labels