Add Lambda-based ILog-Extensions (embedded log.IsEnabled)
---------------------------------------------------------
Key: LOG4NET-290
URL: https://issues.apache.org/jira/browse/LOG4NET-290
Project: Log4net
Issue Type: New Feature
Components: Core
Affects Versions: 1.2.10
Reporter: Lars Corneliussen
Fix For: 1.2.11
{code}
if (log.IsDebugEnabled) log.DebugFormat("x: {0}", 123)
{code}
Could be nicely shortened to:
{code}
log.Debug( m=>m("value= {0}", obj.Value) );
{code}
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira