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

public class GcpJsonLayout extends JsonLayout
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"
  • Constructor Details

    • GcpJsonLayout

      public GcpJsonLayout()
  • Method Details

    • toJsonMap

      protected Map<String,Object> toJsonMap(ch.qos.logback.classic.spi.ILoggingEvent event)
      Overrides:
      toJsonMap in class JsonLayout
    • setServiceName

      public void setServiceName(String serviceName)
    • setServiceVersion

      public void setServiceVersion(String serviceVersion)