Extensions to logback for smoother integration with cloud environments. Currently, supports transforming default spring-boot logs into a JSON format appropriate for Google's Stackdriver.
- Add maven dependency for this package to your app:
<dependency>
<groupId>com.dnastack</groupId>
<artifactId>logback-extensions</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>ch.qos.logback.contrib</groupId>
<artifactId>logback-jackson</artifactId>
<version>0.1.5</version>
</dependency>
- Configure logback:
/examples/logback-spring.xml
is a copy-pastable configurations.
- If you are using the above example configuration, enable the
gcp
Spring profile to enable JSON logging.