Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.2.11
-
None
Description
There isn't a standard way of passing in more than just a single value into pattern converters:
%logger
{2}Create a simple parser that can split out the Option string:
public class RepeatConverter : PatternConverter
{
protected override void Convert(TextWriter writer, object state)
}
Where the pattern might look something like this in the config file:
%repeat
{Character:a,Repeat,10}that would be translated into:
aaaaaaaaaa
Are there more established ways of encoding multiple values in a string?
%repeat
{character:a;repeat:10}%repeat
{character=a:char,repeat=10:int}???
Maybe this will allow the next next version of log4net to support nested patterns...