Details
-
Bug
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Operating System: Mac OS X 10.0
Platform: Macintosh
-
normal
-
P1
-
80
Description
JDK14LoggerAdapter creates stack traces whether the log formatter wants them or not. By passing a subclass of LogRecord instead of LogRecord, getSourceClassName() and getSourceMethodName() could be overridden and trigger the stack trace walk.
This would ensure that the overhead would be limited to the case where they are actually used by a Formatter subclass.