No, that did not work. The PatternLayout's %n is for the format of the String passed to it. Since it "\n" gets properly translated when sent to the Console and not the Syslog, I suspect it might be how the Syslog routine writes the String.
Dec 17 12:25:48 localhost [DEBUG] [Log4JTest] - debug:%ndebug logged Dec 17 12:25:48 localhost [FATAL] [Log4JTest] - Exception caught Dec 17 12:25:48 localhost java.lang.Exception: exception:%nuser-generated exception Dec 17 12:25:48 localhost at Log4JTest.main(Log4JTest.java:84) -----Original Message----- From: Colin MacDonald [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 8:51 AM To: Log4J Users List Subject: RE: syslog not logging linefeeds > I'm using "\n" in my Strings, but instead of a linefeed in the syslog, it > actually shows a "\n". Any ideas? Try "%n". It's the "platform dependent line separator character", according to the PatternLayout javadocs. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>