I am currently fine-tuning my log4j config of a relatively large project. Currently I have not yet configured the log-levels for all locations that could create log entries.
I would like to have log4j have some sort of fallback appender to log all messages for which no other appender has been configured. So if for example I have a log message to:
log to: a.b.c.d:WARN
and have an appender configured to log packages a.b.c with level INFO, then the output is logged to that appender.
If however I have no appender configured to handle a.b.c.d then the fallback should be used.
If I would have configured my a.b.c Appender to level FATAL, then nothing should be logged at all, as I deliberately configured log4j to leave these messages away.
I hope I was able to explain what I want to do :-)
Any suggestions?
Chris
additivity=falseflag on the other appenders, then the logs won't propagate. Is that what you meant? - Keppil