Class GoogleCloudPropertyDefiner

  • All Implemented Interfaces:
    ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.PropertyDefiner

    public class GoogleCloudPropertyDefiner
    extends ch.qos.logback.core.PropertyDefinerBase
    Logback extension that sets a property called google_cloud_logging to allow users to switch between appender configurations.
    Since:
    3.2.0
    Author:
    Vinicius Carvalho
    • Field Summary

      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPropertyValue()  
      • Methods inherited from class ch.qos.logback.core.PropertyDefinerBase

        booleanAsStr
      • Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ch.qos.logback.core.spi.ContextAware

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
    • Constructor Detail

      • GoogleCloudPropertyDefiner

        public GoogleCloudPropertyDefiner()
    • Method Detail

      • getPropertyValue

        public java.lang.String getPropertyValue()
        Returns:
        true if application is running on GCP via metadata server detection or if user provided MICRONAUT_ENVIRONMENTS value.