Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 50090
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: Zdenek.Juran [...] zoomint.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Unsupported non-portable line separators?
Date: Tue, 29 Sep 2009 13:13:17 +0200
To: "bug-Log-Log4perl [...] rt.cpan.org" <bug-Log-Log4perl [...] rt.cpan.org>
From: Zdeněk Juran <Zdenek.Juran [...] zoomint.com>
Hello, Log4* is the best logger platform. Many thanks for porting. Will you support non-portable line separators? The reason why I'm asking is that we are working with log4j and log4cpp and from historic reasons we use \n instead of %n in the ConversionPattern attribute. See the example: ######################################################## log4j.rootLogger=INFO, file # file log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.MaxFileSize=250MB log4j.appender.file.MaxBackupIndex=0 log4j.appender.file.File=/var/log/logfile.log log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%d{MMM dd HH:mm:ss} %-5p [%t] %c - %m\n Best regards Zdeněk Juran ZOOM International Phone: +420 222 554 161 Fax: +420 222 554 114 Mobile: +420 737 239 884 E-mail: zdenek.juran@zoomint.com<mailto:zdenek.juran@zoomint.com> Internet: www.zoomint.com<http://www.zoomint.com/> IP Solutions, pure and simple.

Message body is not shown because it is too large.

Ok, I added non-portable line separators to 1.26: http://github.com/mschilli/log4perl/commit/173c91d8d0796848d621e254bec444c3ed975d66 Enjoy! :) -- Mike