Hi,
    Thanks for your reply, and I found the file under c:\Documents and
Settings\Louis\Start Menu\Programs\Apache Tomcat 4.0.
    Can you tell me how to set the output file to my web application
directory?  For example, my application is under e:\webapp\testapp\   I want
to set the output file under this directory.   I try
"file:\e:\webapp\testapp\std-out.log "  but it not work, I also try
different path, its still not work.
    Can you tell me how to set the config file?


Thanks
Louis


----- Original Message -----
From: "Ceki Gülcü" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 11:05 AM
Subject: Re: FileAppender - can't find my ouput log file


> Can the file be under the current directory, i.e. the directory where
> you started tomcat from. Also check if log4j took notice of your
> config file:
>
> Change:
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";>
> to
> <log4j:configuration debug="ture"
> xmlns:log4j="http://jakarta.apache.org/log4j/";>
>
> HTH.
>
> At 10:25 12.06.2002 +0100, you wrote:
> >Hi,
> >
> >         I try to use log4j in my web application, but I have a problem
to
> >using FileAppender, I can't find the output log file.  If I change it to
> >ConsoleAppender, then the output is on the screen and work fine.  Here is
my
> >config file:
> >
> ><?xml version="1.0" encoding="UTF-8" ?>
> ><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> >
> ><log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";>
> >
> >  <appender name="STDOUT" class="org.apache.log4j.FileAppender">
> >             <param name="File"   value="std-out.log" />
> >             <param name="Append" value="true" />
> >             <layout class="org.apache.log4j.PatternLayout">
> >   <param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) -
> >%m%n"/>
> >             </layout>
> >  </appender>
> >
> >  <category name="org.apache.log4j.xml">
> >    <priority value="debug" />
> >  </category>
> >
> >  <root>
> >     <priority value ="debug" />
> >        <appender-ref ref="STDOUT" />
> >  </root>
> >
> ></log4j:configuration>
> >
> >
> >I try this in standalone application then it work fine, the std-out.log
is
> >generated.  I'm using tomcat + poolman.  I know tomcat & poolman are
using
> >log4j, is this cause the problem?
> >
> >
> >Regards,
> >Louis
>
> --
> Ceki
>
> SUICIDE BOMBING - A CRIME AGAINST HUMANITY
> Sign the petition: http://www.petitiononline.com/1234567b
> I am signatory number 22106. What is your number?
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to