RFR: 8145686: SimpleConsoleLogger and LogRecord should take advantage of StackWalker to skip classes implementing System.Logger
Daniel Fuchs
daniel.fuchs at oracle.com
Thu Dec 17 16:42:05 UTC 2015
Hi,
Please find below a small enhancement for the method that infers
the calling class name and method name in SimpleConsoleLogger
and LogRecord.
The idea is that since these methods now use the new StackWalker API
they should take advantage of that in order to skip classes that
implement System.Logger. This should make it possible for components
that need it to easily wrap a System.Logger (and even a j.u.l.Logger).
8145686: SimpleConsoleLogger and LogRecord should take advantage
of StackWalker to skip classes implementing System.Logger
https://bugs.openjdk.java.net/browse/JDK-8145686
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8145686/webrev.00/
best regards,
-- daniel
More information about the core-libs-dev
mailing list