You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by T E Schmitz <ma...@numerixtechnology.de> on 2005/06/17 19:00:44 UTC
syslog linefeed problem
Hello,
I am logging to syslog and am encountering the following effects when
the message contains linefeeds:
If the logging application runs on Windows, ^M appears in place of the
linefeed (0x5e 0x4d). If it runs on Linux the linefeeds are stripped and
replaced by blanks.
This is the case with '\n' as well as Jakarta commons lang SEPARATOR
LINE_SEPARATOR (=getSystemProperty("line.separator").
I am getting the feeling that syslog strips newlines from messages. But
what about the control characters received from the Windows app?
This is particularly a nuisance as I am using Jakarta Commons Lang
ToStringBuilder with MULTI_LINE_STYLE (which uses the above LINE_SEPARATOR).
--
Regards/Gruß,
Tarlika Elisabeth Schmitz
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org