I re-read your post and I understand what you want to do. Negative numbers aren't going to work. The current implementation of NamedPatternConverter places more emphasis on the right most items because it assumes the left most items will contains mostly identical information like System or System.Web. If you write code to support negative indexes, upload a patch to the Jira tracker so it can included in future distributions.
What do you expect to happen when a logger named "alpha.beta" has -5 passed to the %logger pattern? Is that an error? ----- Original Message ---- From: Robert Heinicke <[EMAIL PROTECTED]> To: Log4NET User <[email protected]> Sent: Monday, July 16, 2007 9:34:35 AM Subject: Re: Negative precision modifier for pattern layout Ron Grabowski wrote: > That should be possible. Its the setting I use on most of my applications. Is > it not working? No it isn't. I just checked the source of the 1.2.10 release and Layout/Pattern/NamedPatternConverter.cs states that: in Line 125, log4net.Layout.Pattern.NamedPatternConverter.Convert(...) if (m_precision <= 0) { writer.Write(name); } else { ... } i.e. a negative precision will not work. Or am I looking in the wrong place? :-) Robert
