You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Craig R. McClanahan" <Cr...@eng.sun.com> on 2000/09/28 19:16:10 UTC

Re: Log file question

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