System.Logger API improvements

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 30 06:07:19 UTC 2021


On 30/03/2021 02:46, Anderson Vasconcelos Pires wrote:
> Hi,
>
> Java has several libraries for logging
> (SLF4J, Java.util.logging, Logback, Log4j, Log4j2, FLogger) and I believe
> We should have a standard for logging like we have for persistence (JPA),
> Cache (JCache).
>
> I recently discovered through this maillist that Java has the System.Logger
> API. But I think the interface is very limited. It would be good to improve
> it so developers can adopt it.
>
> Would it be possible to improve this api or this api is just for internal
> jdk use? Could improving it decrease performance? I believe that
> *FLogger *would
> be a pretty good example to follow.
>
> I tried to find a discussion about this but I did not find one.

JEP 264 [1] provides a good description of this API and should help 
understand why the API is deliberately minimal and intended for platform 
classes that need to log messages. As David says, use core-libs-dev for 
follow-up.

-Alan

[1] http://openjdk.java.net/jeps/264


More information about the discuss mailing list