[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4net-dev
Subject:    [jira] [Created] (LOG4NET-400) ILog extension methods doesnt work as expected
From:       "Gian Marco Gherardi (JIRA)" <jira () apache ! org>
Date:       2013-10-11 7:32:42
Message-ID: JIRA.12673385.1381476689792.50509.1381476762270 () arcas
[Download RAW message or body]

Gian Marco Gherardi created LOG4NET-400:
-------------------------------------------

             Summary: ILog extension methods doesnt work as expected
                 Key: LOG4NET-400
                 URL: https://issues.apache.org/jira/browse/LOG4NET-400
             Project: Log4net
          Issue Type: Improvement
            Reporter: Gian Marco Gherardi


Hi, I'm trying this feature, but seems that the following format doesn't work:

  log.Debug( m=>m("value= {0}", obj.Value) ); 

Instead this seems the correct signature:

  log.Debug(() => string.Format("value= {0}", obj.Value));

That is not as convenient IMO. Another thing I've noticed is that there are also many \
extension methods that merely proxy the methods already supported by plain ILog. \
What's the reason for that? I mean ILog methods already skip logging if level is not \
active.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic