tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Modifying logging levels logged in catalina.out at runtime
Date Thu, 02 Dec 2010 09:00:55 GMT
On 12/1/10 7:59 PM, Jason Pyeron wrote:
> This may be slightly off-topic.
> 
> I'll start off with I know how to do this from inside the webapp's code and how
> to do it by modifing properties files on the system at tomcat startup. But how
> can it be done from outside the webapp with out restarting tomcat?

Yes, it's possible via JMX.  Connect JConsole, (or the more recent
VisualVM with MBean plugin), to the running process and examine:

 java.util.logging:type=Logging

There is an operation in which you can adjust the log level.

This is available programmatically too.


Have a good poke around in the MBeans while you're there.  You may be
surprised at what's else is available.


p


> We are using java.util.logging on tomcat 5.5.23 using jdk 1.6.0_17.
> 
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


Mime
View raw message