Class AsyncAppender.DiscardSummary

  • Enclosing class:
    AsyncAppender

    private static final class AsyncAppender.DiscardSummary
    extends java.lang.Object
    Summary of discarded logging events for a logger.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count
      Total count of messages discarded.
      private LoggingEvent maxEvent
      First event of the highest severity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(LoggingEvent event)
      Add discarded event to summary.
      LoggingEvent createEvent()
      Create event with summary information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • maxEvent

        private LoggingEvent maxEvent
        First event of the highest severity.
      • count

        private int count
        Total count of messages discarded.
    • Constructor Detail

      • DiscardSummary

        public DiscardSummary​(LoggingEvent event)
        Create new instance.
        Parameters:
        event - event, may not be null.
    • Method Detail

      • add

        public void add​(LoggingEvent event)
        Add discarded event to summary.
        Parameters:
        event - event, may not be null.
      • createEvent

        public LoggingEvent createEvent()
        Create event with summary information.
        Returns:
        new event.