tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: Log file question
Date Thu, 28 Sep 2000 17:16:10 GMT
shahed wrote:

> I have 2 questions regarding logging
>
> 1. Can I have a log file per context ?
>

No, in Tomcat 3.x.  Yes, in Tomcat 4.0.

>
> 2. How do I use the log() function ?
>    It seems to work in Servlets but not in JSP.
>

Use the ServletContext.log() method.  From a scriptlet, that would be:

    <%
        application.log("My message goes here");
    %>

>
> Thanks
> Shahed.
>

Craig McClanahan


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

--
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
                                    Applications to Tomcat



Mime
View raw message