Skip to main content

JDK Platform Logging

From Java version 9, built-in logging execution classes are separate from classes used to create and send logs. JDK Platform Logging (JPL) specifies java.lang.System.Logger and java.lang.System.LoggerFinder in the java.lang.System class in the java.base module. The default implementations are in java.util.logging (JUL) package in the java.logging module.

JPL and Klogging

Klogging provides an alternative to JUL for JPL implementation. In your JVM project, include the jdk-platform-klogging package.

Gradle:

dependencies {
implementation("io.klogging:jdk-platform-klogging:0.6.1")
}

Maven:

<dependencies>
<dependency>
<groupId>io.klogging</groupId>
<artifactId>jdk-platform-klogging</artifactId>
<version>0.6.1</version>
</dependency>
</dependencies>