You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steven Peterson <sp...@listpilot.com> on 2006/01/10 02:30:34 UTC

How do I log to file jasper compile error messages?

I am migrating from version 4.1 to 5.5 and am wrestling with the 
logging.  How do I get compile errors from jasper to go to a log file 
instead of the console?  I have set swallowOutput to true in the context 
config, and added the below entries to the 
{catalina_home}/conf/logging.properties file.  But when I call a jsp 
page with a compile error, I see the error on the console but not in any 
of the log files.  Any pointers as to what I am missing?

#add the 6mpower... entry to the handlers
handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, 
3manager.org.apache.juli.FileHandler, 
4admin.org.apache.juli.FileHandler, 
5host-manager.org.apache.juli.FileHandler, 
6mpower.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

6mpower.org.apache.juli.FileHandler.level = FINE
6mpower.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
6mpower.org.apache.juli.FileHandler.prefix = mpower.

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mpower].level 
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mpower].handlers 
= 6mpower.org.apache.juli.FileHandler

- Steve Peterson


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


Re: How do I log to file jasper compile error messages?

Posted by Bill Barker <wb...@wilshire.com>.
"Steven Peterson" <sp...@listpilot.com> wrote in message 
news:43C30E3A.3090801@listpilot.com...
>I am migrating from version 4.1 to 5.5 and am wrestling with the logging. 
>How do I get compile errors from jasper to go to a log file instead of the 
>console?  I have set swallowOutput to true in the context config, and added 
>the below entries to the {catalina_home}/conf/logging.properties file.  But 
>when I call a jsp page with a compile error, I see the error on the console 
>but not in any of the log files.  Any pointers as to what I am missing?
>
> #add the 6mpower... entry to the handlers
> handlers = 1catalina.org.apache.juli.FileHandler, 
> 2localhost.org.apache.juli.FileHandler, 
> 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, 
> 5host-manager.org.apache.juli.FileHandler, 
> 6mpower.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
>
> 6mpower.org.apache.juli.FileHandler.level = FINE
> 6mpower.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 6mpower.org.apache.juli.FileHandler.prefix = mpower.
>
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mpower].level 
> = INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mpower].handlers 
> = 6mpower.org.apache.juli.FileHandler
>

Try:
 org.apache.jasper.handlers=6mpower.org.apache.juli.FileHandler

> - Steve Peterson 




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