[slf4j-dev] [Bug 80] New: JDK14LoggerAdapter should lazily create stack traces

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Sat May 17 04:58:36 CEST 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=80

           Summary: JDK14LoggerAdapter should lazily create stack traces
           Product: SLF4J
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.0
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Implementations
        AssignedTo: dev at slf4j.org
        ReportedBy: matthew at mastracci.com


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.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list