Platform logging for a library

Roger Riggs roger.riggs at oracle.com
Mon Mar 15 15:25:08 UTC 2021


Hi,

The platform logging provides a simple interface that can be configured 
to delegate to other logging frameworks.
Unless you have specific needs for logging, I would say yes, keep the 
client code simple and unencumbered by specific imports and dependencies.

Regards, Roger

On 3/13/21 1:03 PM, d3coder wrote:
> Is it good practice to use platform logging api[1] instead of libraries like
> slf4j or log4j-api in my libraries?
> [1] https://openjdk.java.net/jeps/264
>
>



More information about the discuss mailing list