JEP 264: Platform Logging API and Service

Peter Levart peter.levart at
Sun Sep 20 13:46:00 UTC 2015

On 09/18/2015 06:17 PM, mark.reinhold at wrote:
> New JEP Candidate:
> - Mark


What is the purpose of exposing a factory for loggers in the generally 
exported package (java.lang) and making it standard Java API as opposed 
to keeping it internal API as it is now 
(sun.util.logging.PlatformLogger)? Is this going to become an official 
front-end for JDK-internal and applications use, available in the 
platform itself?

Otherwise I think it's good to add support for interfacing other 
backends (besides JDK14 Logging and stderr) to platform logger. If one 
wants to interface some other backend to platform logger now, it's 
actually doable, but only via the intermediate JDK14 Logging API, like this:

PlatformLogger -> j.u.l.Logger -> jul-to-slf4j -> slf4j-WHATEVER-BACKEND

Adding support to skip JDK14 Logging would simplify configuration and 
make it more lightweight.

Regards, Peter

More information about the core-libs-dev mailing list