Instead of matching on on the class having "Test" in its name (which might be able to be done via a Filter on an appender), I would suggest naming your unit test loggers in a different way than you other loggers. for instance...
Logger logger = Logger.getLogger("test." + MyClassTest.class); Then you can say... <logger name="test" additivity="false"> <!-- this is, effectively, the root logger for any unit test class --> <level value="debug"/> <appender-ref ref="JUnitAppender"/> </logger> Now you've got a hierarchy of loggers that only apply to test classes and won't affect other clases at all. Jake Quoting Guillermo Federico <[EMAIL PROTECTED]>: > > In my configuration file I want to specify a specific logging level to all > loggers whose name matches a simple pattern (i.e. *Test ). Could someone > point me in the right direction? > This seems to be very straightforward, but I have not been able to find any > relevant documentation. > -- > View this message in context: > http://www.nabble.com/Logger-level-configuration-based-on-simple-pattern-t1558994.html#a4234709 > Sent from the Log4j - Users forum at Nabble.com. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]