Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 767 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 767 Bytes

logback-extensions

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.

Usage

  1. 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>
  1. 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.