
7 Jan
2013
7 Jan
'13
2:16 p.m.
[Originally posted on 12/26/2012, but it apparently did not make it to the list archives. msp] Hi. Thank you for SLF4J and Logback. I have this line of code that just today came in from an upstream dependency out of my control: private static final Logger logger = Logger.getLogger(FooImpl.class); static { logger.setLevel(Level.DEBUG); <<<<<<<<<<<<<<<< } Unfortunately, this is logging code I had been successfully bridging, but this setLevel() call on a Log4J logger breaks it. Do I have any elegant recourse beyond asking the developers of the line of code to not do this? Thanks. -- Mark