Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8145686

SimpleConsoleLogger and LogRecord should take advantage of StackWalker to skip classes implementing System.Logger

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs

      When looking for the calling method to display in log files, the new StackWalking API makes it possible to implement filtering not only on the declaring class name, but also on the declaring class itself. SimpleConsoleLogger and LogRecord should take advantage of that to filter out classes implementing System.Logger. This will make it possible to easily implement logger wrappers without having to resort to using logp to preserve the calling class name and method name information.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: