Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-587

Suggestion: Change logger name of inner classes.

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.15
    • Fix Version/s: 0.9.18
    • Component/s: logback-classic
    • Labels:
      None

      Description

      At the moment, the logger name of inner classes is OuterClass$InnerClass.
      Because of that, the logging level of OuterClass isn't inherited by InnerClass at the moment.

      If LoggerFactory changed the logger name to OuterClass.InnerClass instead, InnerClass would inherit the logging level of OuterClass which seems intuitively correct.

      I'd suggest to accept both $InnerClass and .InnerClass style in logback configurations for compatibility and usability reasons.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              jhuxhorn Joern Huxhorn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: