JUL log formatter

Parent for JUL JSON formatter modules

License

License

Categories

Categories

ORM Data
GroupId

GroupId

com.github.svendiedrichsen
ArtifactId

ArtifactId

log-formatter
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

pom
Description

Description

JUL log formatter
Parent for JUL JSON formatter modules
Project URL

Project URL

https://github.com/svendiedrichsen/log-formatter
Source Code Management

Source Code Management

https://github.com/svendiedrichsen/log-formatter.git

Download log-formatter

Filename Size
log-formatter-1.0.2.pom 5 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.svendiedrichsen/log-formatter/ -->
<dependency>
    <groupId>com.github.svendiedrichsen</groupId>
    <artifactId>log-formatter</artifactId>
    <version>1.0.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.svendiedrichsen/log-formatter/
implementation 'com.github.svendiedrichsen:log-formatter:1.0.2'
// https://jarcasting.com/artifacts/com.github.svendiedrichsen/log-formatter/
implementation ("com.github.svendiedrichsen:log-formatter:1.0.2")
'com.github.svendiedrichsen:log-formatter:pom:1.0.2'
<dependency org="com.github.svendiedrichsen" name="log-formatter" rev="1.0.2">
  <artifact name="log-formatter" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.svendiedrichsen', module='log-formatter', version='1.0.2')
)
libraryDependencies += "com.github.svendiedrichsen" % "log-formatter" % "1.0.2"
[com.github.svendiedrichsen/log-formatter "1.0.2"]

Dependencies

test (1)

Group / Artifact Type Version
org.testng : testng jar 6.8.8

Project Modules

  • json-formatter-gson
  • json-formatter-jackson2

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.

JSON formatter using GSON

Formatter using GSON to create JSON.

JSON formatter using Jackson2

Formatter using Jackson2 to create JSON.

Versions

Version
1.0.2
1.0.1
1.0.0