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

public abstract class MailManager extends AbstractManager
Parent of all managers that send e-mails.
  • Constructor Details

  • Method Details

    • add

      public abstract void add(LogEvent event)
      Adds an event to the cyclic buffer.
      Parameters:
      event - The event to add.
    • sendEvents

      public abstract void sendEvents(Layout<?> layout, LogEvent appendEvent)
      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.