public class

DefaultMailLoggingManager

extends Object
implements MailLoggingManager
java.lang.Object
   ↳ com.atlassian.jira.mail.DefaultMailLoggingManager

Summary

Public Constructors
DefaultMailLoggingManager(MailServerManager mailServerManager, LoggingManager loggingManager)
Public Methods
void configureLogging(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.
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.
Logger getIncomingMailLogger()
Clients willing to log to incoming mail log (by default written to a separate log file) can use this logger.
Level getIncomingMailLoggingLevel()
Retrieves currently configured logging level for incoming mail
Logger getOutgoingMailLogger()
Clients willing to log to outgoing mail log (by default written to a separate log file) can use this logger.
Level getOutgoingMailLoggingLevel()
Retrieves currently configured logging level for outgoing mail
boolean isMailRelatedLogger(Logger logger)
void setIncomingMailLoggingLevel(Level loggingLevel)
Sets new logging level for incoming mail
void setOutgoingMailLoggingLevel(Level loggingLevel)
Sets new logging level for outgoing mail
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.mail.MailLoggingManager

Public Constructors

public DefaultMailLoggingManager (MailServerManager mailServerManager, LoggingManager loggingManager)

Public Methods

public void configureLogging (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.

Parameters
mailServer configures logging for given server.

public 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.

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

public Logger getIncomingMailLogger ()

Clients willing to log to incoming mail log (by default written to a separate log file) can use this logger.

Returns
  • logger which can be used to log incoming mail handling details

public Level getIncomingMailLoggingLevel ()

Retrieves currently configured logging level for incoming mail

Returns
  • currently configured logging level for incoming mail

public Logger getOutgoingMailLogger ()

Clients willing to log to outgoing mail log (by default written to a separate log file) can use this logger.

Returns
  • logger which can be used to log outgoing mail handling details

public Level getOutgoingMailLoggingLevel ()

Retrieves currently configured logging level for outgoing mail

Returns
  • currently configured logging level for outgoing mail

public boolean isMailRelatedLogger (Logger logger)

public void setIncomingMailLoggingLevel (Level loggingLevel)

Sets new logging level for incoming mail

Parameters
loggingLevel new logging level

public void setOutgoingMailLoggingLevel (Level loggingLevel)

Sets new logging level for outgoing mail

Parameters
loggingLevel new logging level