Class MailManager
java.lang.Object
org.apache.logging.log4j.core.appender.AbstractManager
org.apache.logging.log4j.core.net.MailManager
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
SmtpManager
Parent of all managers that send e-mails.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.logging.log4j.core.appender.AbstractManager
AbstractManager.AbstractFactoryData -
Field Summary
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidAdds an event to the cyclic buffer.abstract voidsendEvents(Layout<?> layout, LogEvent appendEvent) Send the contents of the cyclic buffer as an e-mail message.Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
close, getContentFormat, getCount, getLoggerContext, getManager, getName, getStrSubstitutor, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, releaseSub, stop, updateData
-
Constructor Details
-
MailManager
-
-
Method Details
-
add
Adds an event to the cyclic buffer.- Parameters:
event- The event to add.
-
sendEvents
Send the contents of the cyclic buffer as an e-mail message.- Parameters:
layout- The layout for formatting the events.appendEvent- The event that triggered the send.
-