dcsimg
2 separate log files
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Log4j_Learner_log4j
Posted On:   Tuesday, July 26, 2005 12:31 AM

I need two files debug.log and info.log

for log type debug, I have debug.log
for log type info, I need info.log

can u tell me how can I specify??

What is wrong with the following configuration?

log4j.rootCategory=DEBUG, DebugLog
log4j.rootCategory=INFO, InfoLog

log4j.appender.DebugLog=org.apache.log4j.RollingFileAppender
log4j.appender.DebugLog.File=c:/sample//debug.log

log4j.appender.InfoLog=org.apache.log4j.RollingFileAppender
log4j.appender.InfoLog.File=c:/sample//info.log

About | Sitemap | Contact