Class GcpJsonLayout
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
io.kokuwa.micronaut.logging.layout.JsonLayout
io.kokuwa.micronaut.logging.layout.GcpJsonLayout
- All Implemented Interfaces:
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
GCP logging layout.
- Author:
- Stephan Schnabel
- See Also:
-
- "https://cloud.google.com/logging/docs/agent/configuration#process-payload"
- "https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext"
-
Field Summary
Fields inherited from class io.kokuwa.micronaut.logging.layout.JsonLayout
CONTEXT_ATTR_NAME, EXCEPTION_ATTR_NAME, FORMATTED_MESSAGE_ATTR_NAME, includeContextName, includeException, includeFormattedMessage, includeLevel, includeLoggerName, includeMDC, includeMessage, includeThreadName, includeTimestamp, LEVEL_ATTR_NAME, LOGGER_ATTR_NAME, MDC_ATTR_NAME, MESSAGE_ATTR_NAME, THREAD_ATTR_NAME, TIMESTAMP_ATTR_NAMEFields inherited from class ch.qos.logback.core.LayoutBase
startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetServiceName(String serviceName) voidsetServiceVersion(String serviceVersion) toJsonMap(ch.qos.logback.classic.spi.ILoggingEvent event) Methods inherited from class io.kokuwa.micronaut.logging.layout.JsonLayout
add, addMap, addThrowableInfo, addTimestamp, doLayout, formatTimestamp, getContentType, setIncludeContextName, setIncludeException, setIncludeFormattedMessage, setIncludeLevel, setIncludeLoggerName, setIncludeMDC, setIncludeMessage, setIncludeThreadName, setIncludeTimestamp, setThrowableHandlingConverter, setTimestampFormat, setTimestampFormatTimezoneId, start, stopMethods inherited from class ch.qos.logback.core.LayoutBase
getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeaderMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
-
Constructor Details
-
GcpJsonLayout
public GcpJsonLayout()
-
-
Method Details
-
toJsonMap
- Overrides:
toJsonMapin classJsonLayout
-
setServiceName
-
setServiceVersion
-