You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "eryw456f2345t (JIRA)" <ji...@apache.org> on 2014/02/28 12:28:19 UTC

[jira] [Created] (LOG4NET-426) Support IFormattable when write message and add option regional parameters

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)