Hii ,

log4j.rootLogger=debug, R
log4j.logger.com.danga.MemCached=INFO
log4j.appender.R=org.apache.log4j.RollingFileAppender


I set it this way but debug statements are still coming :(

On Sep 10, 4:47 pm, vp <[EMAIL PROTECTED]> wrote:
> Hey Thanx , letmee try this out now :)
>
> On Sep 10, 4:08 pm, "Ray Krueger" <[EMAIL PROTECTED]> wrote:
>
> > If your log4j.properties contains this:
> > log4j.rootLogger=DEBUG,<appenders here>
>
> > Then you're getting DEBUG for everything in your application. Probably
> > not useful, and definitely not recommended.
>
> > In any case, add a line in the file like:
> > log4j.logger.com.danga.MemCached=INFO
>
> > You should add that line after the rootLogger line, but before any of
> > your appenders.
>
> > Hope that helps.
>
> > On Tue, Sep 9, 2008 at 11:35 PM, vp <[EMAIL PROTECTED]> wrote:
>
> > > yeah , i do have log4j and the level is set to debug in properties
> > > file . i didnt want to change the level in log4j properties file as i
> > > want to see the debug stmnts for other modules of the app. Is it
> > > posible to disable only the debug staments for memcache ????
>
> > > On Sep 9, 3:47 pm, "Ray Krueger" <[EMAIL PROTECTED]> wrote:
> > >> What version on Tomcat?
> > >> Does your application have Log4j in the classpath?
> > >> If so, do you have a log4j.xml or log4j.properties file with something
> > >> set to DEBUG?
>
> > >> On Tue, Sep 9, 2008 at 5:05 AM, vp <[EMAIL PROTECTED]> wrote:
>
> > >> > Thanx , but it doesnt seem to work :(
>
> > >> > On Sep 9, 2:53 pm, Trond Norbye <[EMAIL PROTECTED]> wrote:
> > >> >> On Sep 9, 2008, at 11:38 AM, vp wrote:
>
> > >> >> > I am trying to use memecached in my application .
>
> > >> >> > but it gives these debug statements in the tomcat log
>
> > >> >> > "DEBUG MaintThread com.danga.memcached.SockIOPool  ++++ Size of busy
> > >> >> > pool for host (172.16.1.16:11211)  = 0 "
>
> > >> >> > in a loop
>
> > >> >> > Can any body help me disable these ??
>
> > >> >> I would guess something like the following would work:
>
> > >> >> Logger.getLogger(SockIOPool.class.getName(), Logger.LEVEL_WARN);
>
> > >> >> Cheers,
>
> > >> >> Trond

Reply via email to