Ron, thanks for the suggestion.  Just tried it.  Still not working.  It is
interpretting the "escape" characters literally.  Any other ideas?  Here are
my tests and results:


\r\n
Log statement:
log.Debug("\r\nGun Level: " & Value & "\r\n")

Result:
2005-10-21 12:34:33,864 [DEBUG] COMPONENT v2.1 - \r\nGun Level: 32000\r\n


%n%n
Log Statement:
log.Debug("%n%nGun Level: " & Value & "%n%n")

Result:
2005-10-21 13:11:27,570 [DEBUG] COMPONENT v2.1 - %n%nGun Level: 32000%n%n


%newline%newline
Log Statement:
log.Debug("%newline%newlineGun Level: " & Value & "%newline%newline")

Result:
2005-10-21 13:15:54,482 [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 ?

--- "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 write blank strings, but it still
> has the
> timestamp prefix attached to it.  I am using log4net version
> 1.2.0.30714,
> which I think is the latest.  I would greatly appreciate any help
> that
> anyone can offer.
> 
> Thanks,
> Chris
> 
> 

Reply via email to