Have you tried %n and/or %newline ?
--- Secules, Christopher T [AMSRD-AAR-AEF-A]
[EMAIL PROTECTED] wrote:
I know you can identify newlines in the header and footer of the
config file
by specifying \r\n. I'm trying to figure out how to specify
newlines in
the actual log statements. I can
[DEBUG] COMPONENT v2.1 - %newline%newlineGun Level:
32000%newline%newline
-Original Message-
From: Ron Grabowski [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 1:03 PM
To: Log4NET Dev
Subject: Re: Writing newlines and whitespace to logs?
Have you tried %n and/or %newline
To: Log4NET Dev
Subject: Re: Writing newlines and whitespace to logs?
Have you tried %n and/or %newline ?
--- Secules, Christopher T [AMSRD-AAR-AEF-A]
[EMAIL PROTECTED]
wrote:
I know you can identify newlines in the header and footer of the
config file by specifying \r\n. I'm trying
:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 2:16 PM
To: Log4NET Dev
Subject: RE: Writing newlines and whitespace to logs?
1.2.0.30714 is not the latest version. You should download 1.2.9 beta:
http://logging.apache.org/log4net/downloads.html
This should work:
layout type
I understand what you want to do now. I didn't look at this line
closley enough:
log.Debug(%newline%newlineGun Level: Value %newline%newline)
That's not how log4net works. Patterns are evaulated once at start up
and cannot be dynmically inserted into a message. What do you expect to
happen