Skip to content

svendiedrichsen/log-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log formatter

This project contains java.util.logging.Formatter implementations usable with JUL logging. Each library provides besides a normal JAR an Uber-Jar containing all required dependencies.

To use one of them you can set the formatter at the specific JUL Handler implementation.

Each formatter adds a timestamp property to each log entry derived from the LogRecords millis property. It uses the RFC-3339 format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

Formatter using GSON to create JSON.

Formatter using Jackson2 to create JSON.