Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 500 Bytes

File metadata and controls

19 lines (17 loc) · 500 Bytes

JSON log formatter using Jackson2

Usage

Configure to use it as a formatter for a JUL FileHandler

...
java.util.logging.FileHandler.formatter=logging.util.json.Jackson2Formatter
...

Maven dependency

<dependency>
    <artifactId>json-formatter-jackson2</artifactId>
    <groupId>com.github.svendiedrichsen</groupId>
    <version>1.0.1</version>
</dependency>

To use the uber dependency add the maven <classifier>uber</classifier>.