logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chamal De Silva" <chamal.desi...@gmail.com>
Subject Writing logs to several files
Date Sat, 11 Aug 2007 13:42:34 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message