logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thierry Lam" <...@pcigeomatics.com>
Subject RE: Formating problem in the log file
Date Thu, 21 Apr 2005 18:00:38 GMT
Here's my logfile output:

INFO STUFFLogger - Entering STUFF
 INFO STUFFLogger - Exiting STUFF

The byte sequence following STUFF:

0D 0A

The space before line 2 has byte sequence 20.

The shift is present in subsequent lines.
Gvim, vi, visual studio and notepad shows the shift in subsequent lines.


Thierry

-----Original Message-----
From: Curt Arnold [mailto:carnold@houston.rr.com] 
Sent: Thursday, April 21, 2005 12:29 PM
To: Log4CXX User
Subject: Re: Formating problem in the log file

I assume not, but don't have your configuration file.  I'm guessing the 
problem may be one of line-feed convention.  Could you open the log 
file with a hex editor (File Open in Visual Studio and select Open As 
Binary) and report the byte sequence before the second line.  Also, are 
you seeing the shift in all subsequent lines and also in all text 
editors?


On Apr 21, 2005, at 9:38 AM, Thierry Lam wrote:

> I finally got log4cxx from March 31st to work and my log file 
> initially looks like the following:
>  
> Here's what I get:
>  
> 2005-04-21 10:30:51,518 INFO STUFFSLogger 
> (c:\home\stuffs\stuffs.cpp:397) - Entering STUFFS CLASS
>  2005-04-21 10:30:51,628 INFO STUFFSLogger 
> (c:\home\stuffs\stuffs.cpp:408) - Exiting STUFFS CLASS
>  
> Here's what I want:
>  
> 2005-04-21 10:30:51,518 INFO STUFFSLogger 
> (c:\home\stuffs\stuffs.cpp:397) - Entering STUFFS CLASS
> 2005-04-21 10:30:51,628 INFO STUFFSLogger 
> (c:\home\stuffs\stuffs.cpp:408) - Exiting STUFFS CLASS
>  
>  
> As you can observe from the output logfile, the left margin of the 1st 
> line does not match the left margin of the 2nd line, is that the 
> intended behaviour?
>  
> Thanks
> Thierry




Mime
View raw message