tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roshni Basu <roshni...@gmail.com>
Subject Re: Tomcat Logging level change
Date Wed, 22 Jun 2011 15:16:59 GMT

I have created a java file. And running this. Could you elaborate what
exactly you want to know?

Mark Thomas wrote:
> 
> On 22/06/2011 16:03, Roshni Basu wrote:
>> 
>>  Tomcat version is 6.0.9.
>> Here is my snippet of code:
>> 
>> LogManager logManager = LogManager.getLogManager();
>>         Enumeration<String> e = logManager.getLoggerNames();
>>         while (e.hasMoreElements())
>>         {
>>             String loggername = e.nextElement();
>>             Logger logger = logManager.getLogger(loggername);
>>             Handler[] handlers = logger.getHandlers();
>>             if (handlers != null && handlers.length != 0)
>>             {
>>                 for (Handler h : handlers)
>>                 {
>>                     h.setLevel(Level.WARNING);
>>                 }
>>                 logger.setLevel(Level.WARNING);
>>             }
>>         }
> 
> Which is running where exactly?
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Tomcat-Logging-level-change-tp31902405p31904108.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message