Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.12
    • Component/s: Core
    • Labels:
      None

      Description

      would be useful an override like this
      ILog.Debug(Func<string> messageDelegate);

      callable as
      log..Debug(()=> MyTimeExpensiveMethod);

      This is to prevent boiled code as
      if(log.IsDebugEnable)
      {
      log..Debug(MyTimeExpensiveMethod());
      }

      Log4Net can call the messageDelegate only when really needed.

      If you want stay in NET2.0 you can create a specific delegate
      public delegate string MessageDelegate;

      Btw, IMO, the new version should target directly .NET3.5.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nachbarslumpi Dominik Psenner
                Reporter:
                fabiomaulo Fabio Maulo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: