RFR: 8024525 - Make Logger log methods call isLoggable()

Daniel Fuchs daniel.fuchs at oracle.com
Wed Sep 11 17:59:55 UTC 2013


Hi,

Please find below a changeset for a small logging RFE:

8024525 - Make Logger log methods call isLoggable()

<http://cr.openjdk.java.net/~dfuchs/webrev_8024525/webrev.00/>

This change makes the various Logger logging method call isLoggable()
instead of simply inlining the checks.
This should make the life easier for subclasses of Logger which
want to control when messages should be logged.

The test is a bit obscure but it calls all the methods
that have been modified and checks that they log when isLoggable()
is true and don't log when isLoggable() is false.

best regards,

-- daniel



More information about the core-libs-dev mailing list