Package org.apache.log4j
Class AsyncAppender.DiscardSummary
- java.lang.Object
-
- org.apache.log4j.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.
-
Constructor Summary
Constructors Constructor Description DiscardSummary(LoggingEvent event)
Create new instance.
-
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.
-
-
-
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.
-
-