Package io.micronaut.gcp.logging
Class GoogleCloudPropertyDefiner
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.PropertyDefinerBase
io.micronaut.gcp.logging.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
-
Constructor Summary
-
Method Summary
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 Details
-
GoogleCloudPropertyDefiner
public GoogleCloudPropertyDefiner()
-
-
Method Details
-
getPropertyValue
- Returns:
- true if application is running on GCP via metadata server detection or if user provided MICRONAUT_ENVIRONMENTS value.
-