public interface JsonLoggingEventEnhancer
Implementing classes can be used as <loggingEventEnhancer> elements in the logback definition
for StackdriverJsonLayout.
| Modifier and Type | Method and Description |
|---|---|
void |
enhanceJsonLogEntry(Map<String,Object> jsonMap,
ch.qos.logback.classic.spi.ILoggingEvent event)
Add additional JSON data to the JSON log entry, based on the
ILoggingEvent. |
void enhanceJsonLogEntry(Map<String,Object> jsonMap, ch.qos.logback.classic.spi.ILoggingEvent event)
ILoggingEvent.
Users should put additional records to jsonMap to extend the JSON object that will be logged.jsonMap - represents the JSON object that is produced by the Stackdriver JSON logging layoutevent - the Logback logging eventCopyright © 2021. All rights reserved.