On Thu, 10 Jul 2008 19:29:03 +0200
Claus Nielsen <[EMAIL PROTECTED]> wrote:
>I have a unit test which checks that a class writes the log statements
>it's supposed to.
I've chosen to implement this check in a trubo filter.
This way the test depends less on logback.xml
- even if a DEBUG message is not actually logged
due to Logger level having been set to INFO the test will catch it.
Although if the user writes it log4j style
if (logger.isDebugEnabled()){logger.log("foo");}
in my method we're still out of luck, can not check this.
Regards,
Anton
_______________________________________________
Logback-user mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-user