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 8 Next »

Temporary Logging

Notification log

Every notification sent from the Notification Assistant for JIRA plugin.

Logging is disabled by default. To enable logging, login to JIRA administration, go to System and "Logging and Profiling". Locate "com.riadalabs.jira.plugins.notificationassistant.log.NAFJEmailLogger" and set log level to "INFO".

REST-API log

Every REST call sent from the Notification Assistant for JIRA plugin.

Logging is disabled by default. To enable logging, login to JIRA administration, go to System and "Logging and Profiling". Locate "com.riadalabs.jira.plugins.notificationassistant.log.NAFJRestLogger" and set log level to "INFO". 

Permanent Logging

Add the following to your log4j.properties file:

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


Version Differences

In version 6.1.1 and before the logs will be at:

  • <JIRA_HOME>/data/attachments/nafj/log/email.log
  • <JIRA_HOME>/data/attachments/nafj/log/rest.log

For version 6.1.2 and later, the logs will be at:

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