Re: Tomcat Logging level change

2011-06-23 Thread Roshni Basu
Do i need to make any chnages in the logging.properties file? I tried making everything from FINE to WARNING and also i tried adding org.apache.catalina.level=WARNING in the logging.properties, it somehow worked. But Is this the way it should behave or we need to make changes in my java code as

Re: Tomcat Logging level change

2011-06-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roshni, On 6/23/2011 4:49 AM, Roshni Basu wrote: Do i need to make any changes in the logging.properties file? That's typically how logging is configured. I tried making everything from FINE to WARNING and also i tried adding

Re: Tomcat Logging level change

2011-06-22 Thread Konstantin Kolinko
2011/6/22 Roshni Basu roshni...@gmail.com: I am changing the log level of tomcat to Level.WARNING. In this case I'm trying to restart tomcat and see the logs, I can see the info level logs like INFO: Server startup in 50516 ms . I guess info level logs should not appear if log level set to

Re: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
Tomcat version is 6.0.9. Here is my snippet of code: LogManager logManager = LogManager.getLogManager(); EnumerationString e = logManager.getLoggerNames(); while (e.hasMoreElements()) { String loggername = e.nextElement(); Logger logger =

Re: Tomcat Logging level change

2011-06-22 Thread Mark Thomas
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(); EnumerationString e = logManager.getLoggerNames(); while (e.hasMoreElements()) { String loggername =

Re: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
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();

Re: Tomcat Logging level change

2011-06-22 Thread Mark Thomas
On 22/06/2011 16:16, Roshni Basu wrote: I have created a java file. And running this. Could you elaborate what exactly you want to know? I want to know how this code is being executed. When does it run? What triggers it? Mark Mark Thomas wrote: On 22/06/2011 16:03, Roshni Basu wrote:

Re: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
I just run it when I need to change the log level. Mark Thomas wrote: On 22/06/2011 16:16, Roshni Basu wrote: I have created a java file. And running this. Could you elaborate what exactly you want to know? I want to know how this code is being executed. When does it run? What

Re: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
Basically I have an web application running on tomcat. Mark Thomas wrote: On 22/06/2011 16:16, Roshni Basu wrote: I have created a java file. And running this. Could you elaborate what exactly you want to know? I want to know how this code is being executed. When does it run? What

RE: Tomcat Logging level change

2011-06-22 Thread Caldarale, Charles R
From: Roshni Basu [mailto:roshni...@gmail.com] Subject: Re: Tomcat Logging level change I just run it when I need to change the log level. (This is like pulling teeth.) You're providing virtually no useful information here. You run the program where? As a servlet? Standalone? In some

RE: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
Application is running on tomcat. n828cl wrote: From: Roshni Basu [mailto:roshni...@gmail.com] Subject: Re: Tomcat Logging level change I just run it when I need to change the log level. (This is like pulling teeth.) You're providing virtually no useful information here. You run

RE: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
Its working fine when I set to Fine. In catalina.out i can see fine and info logs butwhen I set to warning, even info level logs appear. n828cl wrote: From: Roshni Basu [mailto:roshni...@gmail.com] Subject: Re: Tomcat Logging level change I just run it when I need to change the log level

Re: Tomcat Logging level change

2011-06-22 Thread Konstantin Kolinko
2011/6/22 Roshni Basu roshni...@gmail.com:  Tomcat version is 6.0.9. You know, 6.0.32 is out there... http://tomcat.apache.org/security-6.html Here is my snippet of code: LogManager logManager = LogManager.getLogManager();        EnumerationString e = logManager.getLoggerNames(); It won't

Re: Tomcat Logging level change

2011-06-22 Thread Roshni Basu
So what exactly I can use to make it work in 6.0.9? Konstantin Kolinko wrote: 2011/6/22 Roshni Basu roshni...@gmail.com:  Tomcat version is 6.0.9. You know, 6.0.32 is out there... http://tomcat.apache.org/security-6.html Here is my snippet of code: LogManager logManager =