Page 1 of 1

unable to log in different file using log4php

Posted: Sun Sep 21, 2008 5:11 am
by kalpesh
T :oops: 8) his is my log4php.properties file:
log4php.category.logger=fatal, A2

log4php.category.logger1=error, A2
log4php.appender.A2=LoggerAppenderRollingFile
log4php.appender.A2.layout=LoggerLayoutTTCC
Following is my log4php.properties file
log4php.appender.A2.File=C:/errorlog.log

log4php.category.logger=info, A1
log4php.appender.A1=LoggerAppenderRollingFile
log4php.appender.A1.layout=LoggerLayoutTTCC
log4php.appender.A1.File=C:/testlog.log


log4php.category.logger2=debug, A3
log4php.appender.A3=LoggerAppenderRollingFile
log4php.appender.A3.layout=LoggerLayoutTTCC
log4php.appender.A3.File=C:/debuglog.log

log4php.rootLogger=debug, A3

when i run webpage it only log all debug,error,info message in debuglog.log.
But i want to log debug message only goes to debuglog.log,error messages go to errorlog.log and info message go to testlog.log