tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Parthiban P <parthiba...@gmail.com>
Subject Re: Clarification regarding JULI logger
Date Tue, 17 Jan 2012 13:01:40 GMT
Thanks for your reply.

Probably I have not explained my requirement clearly. Here is my actual
usecase ...

We have our own server implementation and by default we enable only INFO
level logs to be logged. In some cases, dynamically we need to change this
logger level from INFO to FINER (may be for a particular class). Is it
possible to change the logger level dynamically without restarting the JVM.

Note: Here our server starts the tomcat (Catalina.start) and here our
classes will be there in the parent classloader (i.e. not in the same/child
classloader where the JULI jars are loaded).

Parthiban P


On Fri, Jan 13, 2012 at 9:08 PM, Pid <pid@pidster.com> wrote:

> On 13/01/2012 11:04, Parthiban P wrote:
> > Dear Team,
> >
> > We are using TOMCAT-JULI logger for logging purpose in our application.
> >
> > We bundle tomcat(6.0.28) in our product and start the tomcat when our
> > product is started (i.e. we start tomcat from our product-startup-code).
> >
> > For debugging purpose our application needs to change the Logger LEVEL
> > dynamically. When tried to implement this using
> > LogManager.getLogger(className).setLevel(requiredLevel) we found that its
> > not working. And when analyzed the JULI code we found that it is
> searching
> > for the loggers of the currentClassLoader classes only (i.e. not
> searching
> > the loggers from parentClassLoader). Kindly advise us how to proceed
> > further to handle our use-case.
>
> What is changing the log level and where is the code doing it located,
> relative to your other applications?
>
>
> > Is it advisable for us to change the
> > ClassLoaderLogInfo.getClassLoaderInfo() method accordingly?
>
> Probably not.  Have you looked at the JMX MBeans for JUL?
>
>
> p
>
> > Need your help at the earliest.
> >
> > Thanks
> >
> > Parthiban P
> >
>
>
> --
>
> [key:62590808]
>
>

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