Class LoggingConfiguration

java.lang.Object
io.quarkiverse.googlecloudservices.logging.runtime.LoggingConfiguration

@ConfigRoot(name="google.cloud.logging", phase=RUN_TIME) public class LoggingConfiguration extends Object
  • Field Details

    • defaultLog

      @ConfigItem public String defaultLog
      Which Google Operations log should be used by default.
    • enabled

      @ConfigItem(defaultValue="true") public boolean enabled
      Enable or disable the Google Cloud logging.
    • format

      @ConfigItem(defaultValue="TEXT") public LoggingConfiguration.LogFormat format
      Configure base formatting to be either plain text or structured json. Allowed values: TEXT|JSON
    • synchronicity

      @ConfigItem public Optional<com.google.cloud.logging.Synchronicity> synchronicity
      Configure GCP logging synchronicity. Allowed values: SYNC|ASYNC
    • flushLevel

      @ConfigItem public Optional<LoggingConfiguration.ConfigLevel> flushLevel
      Configure auto flush level. Allowed values: DEBUG|INFO|WARN|ERROR|FATAL
    • defaultLabel

      @ConfigItem public Map<String,String> defaultLabel
      Configure default labels.
    • resource

      @ConfigItem public LoggingConfiguration.ResourceConfig resource
      Configured the monitored resource. Please consult the Google documentation for the correct values.
    • gcpTracing

      @ConfigItem public LoggingConfiguration.GcpTracingConfig gcpTracing
      Configure how trace information is handled in GCP.
    • structured

      @ConfigItem public LoggingConfiguration.StructuredConfig structured
      Configuration options for structured logging.
    • logTarget

      @ConfigItem(defaultValue="CLOUD_LOGGING") public com.google.cloud.logging.LoggingHandler.LogTarget logTarget
      Configures if logs should be written to stdout or stderr instead of using Google Cloud Operations API. Useful if app is deployed to managed Google Cloud Platform environment with installed logger agent. Possible values: STDOUT, STDERR and CLOUD_LOGGING.
  • Constructor Details

    • LoggingConfiguration

      public LoggingConfiguration()