Class LoggingEvent

  • All Implemented Interfaces:
    ILoggingEvent, DeferredProcessingAware

    public class LoggingEvent
    extends Object
    implements ILoggingEvent
    The internal representation of logging events. When an affirmative decision is made to log then a LoggingEvent instance is created. This instance is passed around to the different logback-classic components.

    Writers of logback-classic components such as appenders should be aware of that some of the LoggingEvent fields are initialized lazily. Therefore, an appender wishing to output data to be later correctly read by a receiver, must initialize "lazy" fields prior to writing them out. See the prepareForDeferredProcessing() method for the exact list.