You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Thierry Lam <la...@pcigeomatics.com> on 2005/04/21 16:38:39 UTC
Formating problem in the log file
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
Re: Formating problem in the log file
Posted by Curt Arnold <ca...@houston.rr.com>.
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