makes sense. Cheers On Thu, Feb 19, 2015 at 8:30 PM, Sean Busbey <[email protected]> wrote:
> On Thu, Feb 19, 2015 at 2:20 PM, Sleiman Jneidi <[email protected]> > wrote: > > > I usually have a class called BaseTest that every test class extends and > I > > configure me logging there. > > > > > > public class BaseTest { > > > > @BeforeClass > > public static void init(){ > > BasicConfigurator.configure(); > > org.apache.log4j.Logger.getRootLogger().setLevel(Level.ERROR); > > } > > } > > > > > While this works, it's considered an anti-pattern because it becomes > difficult to tune log levels for particular components when you need to > debug. (or to try out other appenders, etc) > > -- > Sean >
