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)