Dynamic logger configuration

2010-09-07 Thread Chris
How can I trap calls to Logger.getLogger() so I can configure each logger dynamically? Our app operates on data in dynamically-created directories. Every time we see a new directory, we want to create a new logger to put the logs in a new subdirectory. This means that we need a new logger inst

help with RollingFileAppender

2010-09-07 Thread vjinaz
Hi, I am having the following properties in my log4j.properties file: log4j.appender.fai=org.apache.log4j.RollingFileAppender log4j.appender.fai.file=/tmp/vj.log log4j.appender.fai.append=true log4j.appender.fai.layout=org.apache.log4j.PatternLayout log4j.appender.fai.layout.ConversionPattern=%x

AW: adding lower level debug statements for context-information

2010-09-07 Thread Stadelmann Josef
I think what you should do is a) configure the logger of modules which show a tendency to fail to log at the debugger level b) while all other loggers shall remain working at the warning or error level Loggers are organized in a tree hierarchies - knowing your tree is all. With that caller g