LoggingEventBuilder
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static String | |
| protected Logger | |
| protected DefaultLoggingEvent |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LoggingEventBuilder | addArgument(Object p)
Implements org. Add an argument to the event being built. |
| public LoggingEventBuilder | addArgument(Supplier<?> objectSupplier)
Implements org. Add an argument supplier to the event being built. |
| public LoggingEventBuilder | addKeyValue(String key, Object value)
Implements org. Add a |
| public LoggingEventBuilder | addKeyValue(String key, Supplier<Object> value)
Implements org. Add a |
| public LoggingEventBuilder | addMarker(Marker
the marker to add marker)Implements org. Add a marker to the current logging event being built. |
| public void | log()
Implements org. After the logging event is built, performs actual logging. |
| public void | log(String message)
Implements org. Equivalent to calling |
| public void | log(String message, Object arg)
Implements org. Equivalent to calling |
| public void | log(String message, Object arg0, Object arg1)
Implements org. Equivalent to calling |
| public void | log(String message, Object... args)
Implements org. Equivalent to calling |
| public void | log(Supplier<String> messageSupplier)
Implements org. Equivalent to calling |
| protected void | |
| private void | |
| private void | |
| private StringBuilder | |
| private StringBuilder | |
| private String | mergeMarkersAndKeyValuePairsAndMessage(LoggingEvent aLoggingEvent)
Prepend markers and key-value pairs to the message. |
| private String | |
| public void | setCallerBoundary(String fqcn)
Implements org. Add a fqcn (fully qualified class name) to this event, presumed to be the caller boundary. |
| public LoggingEventBuilder | setCause(Throwable t)
Implements org. Set the cause for the logging event being built. |
| public LoggingEventBuilder | setMessage(String message)
Implements org. Sets the message of the logging event. |
| public LoggingEventBuilder | setMessage(Supplier<String> messageSupplier)
Implements org. Sets the message of the event via a message supplier. |
| DLEB_FQCN | back to summary |
|---|---|
| pack-priv static String DLEB_FQCN | |
| logger | back to summary |
|---|---|
| protected Logger logger | |
| loggingEvent | back to summary |
|---|---|
| protected DefaultLoggingEvent loggingEvent | |
| DefaultLoggingEventBuilder | back to summary |
|---|---|
| public DefaultLoggingEventBuilder(Logger logger, Level level) | |
| addArgument | back to summary |
|---|---|
| public LoggingEventBuilder addArgument(Object p) Implements org. Doc from org. Add an argument to the event being built.
| |
| addArgument | back to summary |
|---|---|
| public LoggingEventBuilder addArgument(Supplier<?> objectSupplier) Implements org. Doc from org. Add an argument supplier to the event being built.
| |
| addKeyValue | back to summary |
|---|---|
| public LoggingEventBuilder addKeyValue(String key, Object value) Implements org. Doc from org. Add a
| |
| addKeyValue | back to summary |
|---|---|
| public LoggingEventBuilder addKeyValue(String key, Supplier<Object> value) Implements org. Doc from org. Add a
| |
| addMarker | back to summary |
|---|---|
| public LoggingEventBuilder addMarker(Marker marker) Implements org. Add a marker to the current logging event being built. It is possible to add multiple markers to the same logging event. | |
| log | back to summary |
|---|---|
| public void log() Implements org. Doc from org. After the logging event is built, performs actual logging. This method must be called
for logging to occur.
If the call to
| |
| log | back to summary |
|---|---|
| public void log(String message) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object arg) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object arg0, Object arg1) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object... args) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(Supplier<String> messageSupplier) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| protected void log(LoggingEvent aLoggingEvent) | |
| logViaLocationAwareLoggerAPI | back to summary |
|---|---|
| private void logViaLocationAwareLoggerAPI(LocationAwareLogger locationAwareLogger, LoggingEvent aLoggingEvent) | |
| logViaPublicSLF4JLoggerAPI | back to summary |
|---|---|
| private void logViaPublicSLF4JLoggerAPI(LoggingEvent aLoggingEvent) | |
| mergeKeyValuePairs | back to summary |
|---|---|
| private StringBuilder mergeKeyValuePairs(List<KeyValuePair> keyValuePairList, StringBuilder sb) | |
| mergeMarkers | back to summary |
|---|---|
| private StringBuilder mergeMarkers(List<Marker> markerList, StringBuilder sb) | |
| mergeMarkersAndKeyValuePairsAndMessage | back to summary |
|---|---|
| private String mergeMarkersAndKeyValuePairsAndMessage(LoggingEvent aLoggingEvent) Prepend markers and key-value pairs to the message. | |
| mergeMessage | back to summary |
|---|---|
| private String mergeMessage(String msg, StringBuilder sb) | |
| setCallerBoundary | back to summary |
|---|---|
| public void setCallerBoundary(String fqcn) Implements org. Doc from org. Add a fqcn (fully qualified class name) to this event, presumed to be the caller boundary.
| |
| setCause | back to summary |
|---|---|
| public LoggingEventBuilder setCause(Throwable t) Implements org. Doc from org. Set the cause for the logging event being built.
| |
| setMessage | back to summary |
|---|---|
| public LoggingEventBuilder setMessage(String message) Implements org. Doc from org. Sets the message of the logging event.
| |
| setMessage | back to summary |
|---|---|
| public LoggingEventBuilder setMessage(Supplier<String> messageSupplier) Implements org. Doc from org. Sets the message of the event via a message supplier.
| |