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

JDK14LoggerAdapter should lazily create stack traces

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • None
    • Implementations
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: