public class PreBootstrapLoggingEvent extends Object
PreBootstrapLogger that stores timestamped logging
events, and later flushes them to Logback appenders.
At instance level, we implement here an immutable holder for a logging event that might occur at pre-bootstrap time, i.e. before the actual logging system is initialized.
At class level, all created instances are stored in a FIFO queue, so that they can be flushed to Logback appenders once the logging system is bootstrapped.
This class does not implement thread safety. It's the responsibility of client code to properly synchronize calls to these two methods, using a single lock:
Typically, facade loggersSLF4JDelegatingLog do (globally)
synchronize access to PreBootstrapLogger, which implies synchronized
access to this class. See the documentation of these classes for more
details.
Diagnostics can be activated by lowering the
SLF4JDelegatingLog.diagnostics level.
PreBootstrapLogger,
SLF4JDelegatingLog| Modifier and Type | Method and Description |
|---|---|
String |
toString()
The implementation here builds a very basic representation of this
logging event for the sake of low level diagnostics only.
|
Copyright © 2015–2017. All rights reserved.