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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: