Posted: Fri Jul 14, 2006 6:34 am Post subject: log4j
Newbie
Joined: 23 May 2006 Posts: 6
I am having problems getting log4j appenders initialized. I am doing this via a properties file. So all I code in my java compute node is the getLogger. I have the following properties file. Where does this have to be stored so the classloader can find it when running my message flow?
I get the standard warning about no Appenders.
I also tried using XML and deploying with my bar file. This did not work either. Of course I don't know if the XML log4j file is correctly coded.
log4j.properties
---------------------
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG,A1
# A1 set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 is set to be a FileAppender.
#log4j.appender.A1=org.apache.log4j.FileAppender
#log4j.appender.A1=org.apache.log4j.RollingFileAppender
# A1 uses a file.
#log4j.appender.A1.file=C:\\mylog4jfile.log
# For RollingFileAppender, don't append, overwrite
#log4j.appender.A1.Append=false
# For RollingFileAppender, control the maximum log file size
#log4j.appender.A1.MaxFileSize=100MB
# For RollingFileAppender, keep backup files (backups will be name in filename.1, .2, etc)
#log4j.appender.A1.MaxBackupIndex=3
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum