logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabio Maulo (JIRA)" <j...@apache.org>
Subject [jira] Created: (LOG4NET-217) Delayed log
Date Wed, 03 Jun 2009 21:24:07 GMT
Delayed log

                 Key: LOG4NET-217
                 URL: https://issues.apache.org/jira/browse/LOG4NET-217
             Project: Log4net
          Issue Type: Improvement
          Components: Core
    Affects Versions: 1.2.11
            Reporter: Fabio Maulo
            Priority: Minor

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

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

This is to prevent boiled code as

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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message