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

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

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      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.

        Issue Links

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/117b25ef4717
          User: dfuchs
          Date: 2015-12-21 12:33:32 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/117b25ef4717 User: dfuchs Date: 2015-12-21 12:33:32 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/117b25ef4717
          User: lana
          Date: 2015-12-23 23:04:19 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/117b25ef4717 User: lana Date: 2015-12-23 23:04:19 +0000

            People

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

              Dates

              • Created:
                Updated:
                Resolved: