Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-290

Add Lambda-based ILog-Extensions (embedded log.IsEnabled)

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.12
    • Component/s: Core
    • Labels:
      None

      Description

      This statement:
      if (log.IsDebugEnabled) log.DebugFormat("x:

      {0}", 123)

      Could be nicely shortened to:
      log.Debug( m=>m("value= {0}

      ", obj.Value) );

      I'm already apache committer (NPanday Incubator Project) and would be happy to help with this interface. The simplest thing would be to offer it as static Extension-Methods to ILog.

        Attachments

        1. LOG4NET-290-doc.patch
          63 kB
          Pavel Nedoma
        2. LOG4NET-290.patch
          18 kB
          Dominik Psenner

          Issue Links

            Activity

              People

              • Assignee:
                nachbarslumpi Dominik Psenner
                Reporter:
                lcorneliussen Lars Corneliussen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: