hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@cloudera.com>
Subject Re: Reduce logging of HBaseTestingUtility(Silent mode?)
Date Thu, 19 Feb 2015 20:30:38 GMT
On Thu, Feb 19, 2015 at 2:20 PM, Sleiman Jneidi <jneidi.sleiman@gmail.com>
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message