logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: Writing logs to several files
Date Mon, 13 Aug 2007 15:02:03 GMT
See the recent thread with a subject of "level based logging into
seperate files"

On 8/11/07, Chamal De Silva <chamal.desilva@gmail.com> wrote:
> Hi,
>
> I am using RollingFileAppender.
> This is my log4j properties file.
>
> log4j.rootLogger=debug, R
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=syslog.log
> log4j.appender.R.MaxFileSize=100KB
> log4j.appender.R.MaxBackupIndex=5
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
>
> But I want to write debug messages to a file called sysdebug.log, info
> messages to sysinfo.log and errors to syserror.log.  Please tell me how to
> do this.
>
> Thanking You,
> Chamal.
>


-- 
James A. N. Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message