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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.10
    • 1.2.12
    • Core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: