posted 17 years ago
a)log4j:WARN No appenders could be found for logger (com.sns.al.AppLauncher).
log4j:WARN Please initialize the log4j system properly.
b)log4j:ERROR Attempted to append to closed appender named [A-LRI]
this is my log4j configuration file
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
#this is mandatory, DO NOT CHANGE
log4j.categoryFactory=com.sns.base.util.logging.LoggerFactory
log4j.rootCategory=DEBUG,A-LRI
#com.sns.member must be renamed to the package that you are working on
#e.g. com.trade.ita, com.sns.iscm.ifx.ita.common,
#A-LRI MUST-BE-CHANGED
#e.g. A-ITA, A-COMMON,
log4j.category.com.sns.legal.lri=DEBUG, A-LRI
log4j.category.com.sns.govt.lri=DEBUG, A-LRI
log4j.category.com.sns.govt.lri.alrrs.landlots.dao=DEBUG, A-LRI
log4j.category.com.sns.govt.lri.alrrs.gazettes.dao=DEBUG, A-LRI
log4j.category.log4jEffeciency=ERROR
#The LRIA was done so that logger log4j is backward compatable
#this is mandatory, DO NOT CHANGE
#Edit only A-LRI
log4j.appender.A-LRI=org.apache.log4j.RollingFileAppender
log4j.appender.A-LRI.layout=org.apache.log4j.PatternLayout
#log4j.appender.A-LRI.layout.ConversionPattern=%d [%c{3}] %-5p - %m%n
#log4j.appender.A-LRI.layout.ConversionPattern=%d{ISO8601} %-5p %c{3}: %L - %m%n
log4j.appender.A-LRI.layout.ConversionPattern=%d{ISO8601} %-5p %c{3}: %L - %m%n
#Edit A-LRI
#the full path MUST-BE-CHANGED
log4j.appender.A-LRI.File=/sns/legal/lri/rel1_0/logs/lri.log
#this is mandatory, DO NOT CHANGE
#Edit only A-LRI
#set the maximum size for the log file, after which will be backup
log4j.appender.A-LRI.MaxFileSize=5000KB
#if the specified log file is 'lri.log', once the MaxFileSize is reached
#it will be backed up to 'lri.log.1' and so forth till the MaxBackupIndex
log4j.appender.A-LRI.MaxBackupIndex=8
#When your program is going to trial or production, the mode has to be changed to INFO.
#This is to turn off the Debug messages.
[ March 16, 2007: Message edited by: Ulf Dittmer ]