public interface MailLoggingManager
MailFetcherService
and
its descendants) may need to access JIRA mail logging configuration in order to behave well.
Apache Log4J (1.2+) is used as the logging mechanism and its Loggers are directly exposed via API
Modifier and Type | Method and Description |
---|---|
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
|
org.apache.log4j.Level getOutgoingMailLoggingLevel()
org.apache.log4j.Level getIncomingMailLoggingLevel()
void setOutgoingMailLoggingLevel(org.apache.log4j.Level loggingLevel)
loggingLevel
- new logging levelvoid setIncomingMailLoggingLevel(org.apache.log4j.Level loggingLevel)
loggingLevel
- new logging levelorg.apache.log4j.Logger getOutgoingMailLogger()
org.apache.log4j.Logger getIncomingMailLogger()
org.apache.log4j.Logger getIncomingMailChildLogger(String subname)
subname
- additional name for this logger. It will be concatenated with the main incoming mail logger using "." (dot).boolean isMailRelatedLogger(org.apache.log4j.Logger logger)
void configureLogging(com.atlassian.mail.server.MailServer mailServer)
mailServer
- configures logging for given server.Copyright © 2002-2021 Atlassian. All Rights Reserved.