logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eryw456f2345t (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4NET-426) Support IFormattable when write message and add option regional parameters
Date Fri, 28 Feb 2014 11:28:19 GMT
eryw456f2345t created LOG4NET-426:
-------------------------------------

             Summary: Support IFormattable when write message and add option regional parameters
                 Key: LOG4NET-426
                 URL: https://issues.apache.org/jira/browse/LOG4NET-426
             Project: Log4net
          Issue Type: Improvement
            Reporter: eryw456f2345t
            Priority: Minor


(1) Add option regional parameters to config (class CultureInfo) by analogy with Encoding.
CultureInfo.InvariantCulture not always perfect.
(2) Support inteface IFormattable when write message.
If my_iformattable_message implements IFormattable when invoking log.Info(my_iformattable_message);
use not ToString() method, but IFormattable.ToString(string format, IFormatProvider formatProvider)
and pass a parameter formatProvider from log4net. Invocation ToString() use CultureInfo.CurrentCulture.




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message