hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anil gupta <anilgupt...@gmail.com>
Subject Re: Reduce logging of HBaseTestingUtility(Silent mode?)
Date Thu, 19 Feb 2015 21:49:01 GMT
Thanks for additional suggestion, Sleiman.

On Thu, Feb 19, 2015 at 12:32 PM, Sleiman Jneidi <jneidi.sleiman@gmail.com>
wrote:

> makes sense. Cheers
>
> On Thu, Feb 19, 2015 at 8:30 PM, Sean Busbey <busbey@cloudera.com> wrote:
>
> > 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
> >
>



-- 
Thanks & Regards,
Anil Gupta

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