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); } }
Konstantin Kolinko wrote: > > 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 warning. > > 1. If you did it correctly then yes, they should not appear. But what > exactly did you? Please be specific. > > 2. Exact Tomcat version, etc. > >> Kindly let me know how exactly it behvaes > > The sources are all available. > java.util.logging documentation is available from Oracle. > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Tomcat-Logging-level-change-tp31902405p31903978.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org