I currently have a package of classes that I am logging at a specific level. However, with just one of the classes in that package, I would like to log at a different level. Example,
However, this seems to produce the log entries for the Problems class twice. I have also tried reversing the order of them, just in case. Is there a way to change the log level of the Problems class to be different than the rest of the same package?
Paul Clapham wrote:This is one of the questions in the log4j FAQ.
Thanks for the response Paul. That FAQ response led me to 'additivity'. I'll read up on that aspect. Maybe that will lead me to be able to set the package logging level to WARN and a specific class log level to TRACE.
All of the following truths are shameless lies. But what about this tiny ad: