Thanks, I read that but its not clear at all. I added java.util.logging.ConsoleHandler.useParentHandler = true
but has not made a difference. Apache Tomcat 6.0.20 on XP. I have it working by now by deleting the loggers other than: handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler as my apps have their own logging . This now enables me to see the exceptions in the console and they are in catalina.log - ideally I would also like to have them in my apps logs too, I use log4j so I am sure it is possible but I just don't have time to get that deeply into it. Thanks for getting me this far. Konstantin Kolinko wrote: > > 2010/1/18 iainmac <iain_macau...@hotmail.com>: >> >> Hi, >> >> I am upgrading from Tomcat 5 to 6. >> >> When developing I run Tomcat from the command line so I can see the debug >> as >> it happens, but with Tomcat 6 I can see the debug that I have coded but >> when >> there is a Tomcat exception, it doesn't appear in the command line window >> any more although it is in the logs. e.g. >> >> >> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) >> >> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) >> >> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439) >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:334) >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:312) >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:299) >> >> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) >> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) >> >> appears in the log, and in the browser but not in the debug in the >> command >> line window I have open. I am searching for the reason, but if any one >> knows what I need to do please let me know. Thanks. > > That message is logged by 2localhost.org.apache.juli.FileHandler (or > what the name of that log file is?) and does not reach the > ConsoleHandler that prints messages to the console. > > See > http://tomcat.apache.org/tomcat-6.0-doc/logging.html > > There is the following phrase: > "By default, loggers will not delegate to their parent if they have > associated handlers. This may be changed per logger using the > loggerName.useParentHandlers property, which accepts a boolean value." > > 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/Stack-Trace-debug-to-screen-tp27210579p27211979.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