dcsimg
logging to respective appenders only
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kishore_kollipara
Posted On:   Friday, August 6, 2004 03:03 AM

help me to send error log to errorfile appender only even if i have debug and warn appenders.it should not log into debug and warn appenders.my properties file is log4j.rootLogger=DEBUG, error, console, debug, warn #appender to write error details log4j.appender.error=org.apache.log4j.DailyRollingFileAppender log4j.appender.error.file=error.log log4j.appender.error.append=false log4j.appender.error.layout=org.apache.log4j.PatternLayout log4j.appender.error.layout.ConversionPattern=%p (%F:%L) - %m %d{dd MMM yyyy HH:mm:ss}%n log4j.appender.error.threshold=WARN # appender that uses System.out #log4j.appender.console=org.apache.log4j.ConsoleAppender    More>>

help me to send error log to errorfile appender only even if i have debug and warn appenders.it should not log into debug and warn appenders.my properties file is





log4j.rootLogger=DEBUG, error, console, debug, warn

#appender to write error details
log4j.appender.error=org.apache.log4j.DailyRollingFileAppender
log4j.appender.error.file=error.log
log4j.appender.error.append=false
log4j.appender.error.layout=org.apache.log4j.PatternLayout
log4j.appender.error.layout.ConversionPattern=%p (%F:%L) - %m %d{dd MMM yyyy HH:mm:ss}%n
log4j.appender.error.threshold=WARN

# appender that uses System.out
#log4j.appender.console=org.apache.log4j.ConsoleAppender
#log4j.appender.console.layout=org.apache.log4j.PatternLayout
#log4j.appender.console.layout.ConversionPattern=%p (%F:%L) - %m %d{dd MMM yyyy HH:mm:ss}%n
#log4j.appender.console.threshold=DEBUG





# appender to write to a log file
log4j.appender.debug=org.apache.log4j.DailyRollingFileAppender
log4j.appender.debug.file=debug.log
log4j.appender.debug.append=false
log4j.appender.debug.layout=org.apache.log4j.PatternLayout
log4j.appender.debug.layout.ConversionPattern=%p (%F:%L) - %m %d{dd MMM yyyy HH:mm:ss}%n



# appender to write performance details
log4j.appender.warn=org.apache.log4j.DailyRollingFileAppender
log4j.appender.warn.file=warn.log
log4j.appender.warn.append=false
log4j.appender.warn.layout=org.apache.log4j.PatternLayout
log4j.appender.warn.layout.ConversionPattern=%p (%F:%L) - %m %d{dd MMM yyyy HH:mm:ss}%n
log4j.appender.warn.threshold=INFO




# logger level depending on class
log4j.logger.error=ERROR, error
log4j.logger.warn=WARN, warn
log4j.logger.debug=DEBUG, debug

   <<Less
About | Sitemap | Contact