com.atlassian.jira.mail
Class DefaultMailLoggingManager

java.lang.Object
  extended by com.atlassian.jira.mail.DefaultMailLoggingManager
All Implemented Interfaces:
MailLoggingManager

public class DefaultMailLoggingManager
extends Object
implements MailLoggingManager


Constructor Summary
DefaultMailLoggingManager(com.atlassian.mail.server.MailServerManager mailServerManager)
           
 
Method Summary
 void configureLogging(com.atlassian.mail.server.MailServer mailServer)
          Normally you don't need to use this method, unless you explicitely creates instances of MailServer classes, then it's advisable to configure their logging level by calling this method.
 org.apache.log4j.Logger getIncomingMailChildLogger(String subname)
          Clients willing to log to incoming mail log (by default written to a separate log file) can use this method to obtain their more specific logger, which will inherit the appenders from the main incoming mail logger, thus information sent there will be logged also in the incoming mail log file.
 org.apache.log4j.Logger getIncomingMailLogger()
          Clients willing to log to incoming mail log (by default written to a separate log file) can use this logger.
 org.apache.log4j.Level getIncomingMailLoggingLevel()
          Retrieves currently configured logging level for incoming mail
 org.apache.log4j.Logger getOutgoingMailLogger()
          Clients willing to log to outgoing mail log (by default written to a separate log file) can use this logger.
 org.apache.log4j.Level getOutgoingMailLoggingLevel()
          Retrieves currently configured logging level for outgoing mail
 boolean isMailRelatedLogger(org.apache.log4j.Logger logger)
           
 void setIncomingMailLoggingLevel(org.apache.log4j.Level loggingLevel)
          Sets new logging level for incoming mail
 void setOutgoingMailLoggingLevel(org.apache.log4j.Level loggingLevel)
          Sets new logging level for outgoing mail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMailLoggingManager

public DefaultMailLoggingManager(com.atlassian.mail.server.MailServerManager mailServerManager)
Method Detail

configureLogging

public void configureLogging(com.atlassian.mail.server.MailServer mailServer)
Description copied from interface: MailLoggingManager
Normally you don't need to use this method, unless you explicitely creates instances of MailServer classes, then it's advisable to configure their logging level by calling this method.

Specified by:
configureLogging in interface MailLoggingManager
Parameters:
mailServer - configures logging for given server.

getOutgoingMailLoggingLevel

public org.apache.log4j.Level getOutgoingMailLoggingLevel()
Description copied from interface: MailLoggingManager
Retrieves currently configured logging level for outgoing mail

Specified by:
getOutgoingMailLoggingLevel in interface MailLoggingManager
Returns:
currently configured logging level for outgoing mail

getIncomingMailLoggingLevel

public org.apache.log4j.Level getIncomingMailLoggingLevel()
Description copied from interface: MailLoggingManager
Retrieves currently configured logging level for incoming mail

Specified by:
getIncomingMailLoggingLevel in interface MailLoggingManager
Returns:
currently configured logging level for incoming mail

setOutgoingMailLoggingLevel

public void setOutgoingMailLoggingLevel(org.apache.log4j.Level loggingLevel)
Description copied from interface: MailLoggingManager
Sets new logging level for outgoing mail

Specified by:
setOutgoingMailLoggingLevel in interface MailLoggingManager
Parameters:
loggingLevel - new logging level

setIncomingMailLoggingLevel

public void setIncomingMailLoggingLevel(org.apache.log4j.Level loggingLevel)
Description copied from interface: MailLoggingManager
Sets new logging level for incoming mail

Specified by:
setIncomingMailLoggingLevel in interface MailLoggingManager
Parameters:
loggingLevel - new logging level

getOutgoingMailLogger

public org.apache.log4j.Logger getOutgoingMailLogger()
Description copied from interface: MailLoggingManager
Clients willing to log to outgoing mail log (by default written to a separate log file) can use this logger.

Specified by:
getOutgoingMailLogger in interface MailLoggingManager
Returns:
logger which can be used to log outgoing mail handling details

getIncomingMailLogger

public org.apache.log4j.Logger getIncomingMailLogger()
Description copied from interface: MailLoggingManager
Clients willing to log to incoming mail log (by default written to a separate log file) can use this logger.

Specified by:
getIncomingMailLogger in interface MailLoggingManager
Returns:
logger which can be used to log incoming mail handling details

getIncomingMailChildLogger

public org.apache.log4j.Logger getIncomingMailChildLogger(String subname)
Description copied from interface: MailLoggingManager
Clients willing to log to incoming mail log (by default written to a separate log file) can use this method to obtain their more specific logger, which will inherit the appenders from the main incoming mail logger, thus information sent there will be logged also in the incoming mail log file.

Specified by:
getIncomingMailChildLogger in interface MailLoggingManager
Parameters:
subname - additional name for this logger. It will be concatenated with the main incoming mail logger using "." (dot).
Returns:
logger which can be used to log incoming mail handling details

isMailRelatedLogger

public boolean isMailRelatedLogger(org.apache.log4j.Logger logger)
Specified by:
isMailRelatedLogger in interface MailLoggingManager


Copyright © 2002-2012 Atlassian. All Rights Reserved.