Log4net
  1. Log4net
  2. LOG4NET-97

Make Hierarchy's ILoggerFactory aware of the repository's LevelMap

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.11
    • Component/s: None
    • Labels:
      None

      Description

      Instead of creating the RootLogger with Level.Debug:

      return new RootLogger(Level.Debug);

      shouldn't the DefaultLoggerFactory use:

      return new RootLogger(repository.LevelMap.LookupWithDefault(Level.Debug));

      in case the user has remapped Debug to another value.

        Activity

        Hide
        Ron Grabowski added a comment -

        Wrap usages of static Level levels with LevelMap.LookupWithDefault.

        Show
        Ron Grabowski added a comment - Wrap usages of static Level levels with LevelMap.LookupWithDefault.
        Hide
        Nicko Cadell added a comment -

        I have committed this patch.

        Show
        Nicko Cadell added a comment - I have committed this patch.

          People

          • Assignee:
            Nicko Cadell
            Reporter:
            Ron Grabowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development