Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-71

JDK14LoggerAdapter should lazily create stack traces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Implementations
    • Labels:
      None
    • Environment:

      Operating System: Mac OS X 10.0
      Platform: Macintosh

      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.

        Attachments

          Activity

            People

            Assignee:
            slf4j-dev SLF4J developers list
            Reporter:
            matthew@mastracci.com Matthew Mastracci
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: