Hi there,
I dont know much about the XML configuraiton way, but it should be similar
when it comes to configuring a RollongFileAppender. So, can you try to
specify the path to your log file in your configuration file using the ${
cataline.base} property instead of the ${catalina.home} ?
Cheers,
Jerome
On Fri, Mar 14, 2008 at 5:18 AM, msg2ajay <[EMAIL PROTECTED]> wrote:
>
> hello,
> I have configured %CATALINA_HOME% and i have place INFO in my
> code,
> I can see INFO log in Tomcat console, but as I configured to
> "${catalina.home}/MQLog/info/info.log" for "file" I can't see the log file
> after running my application.
>
> my log4j.xml file is as below.
> ---------------------------
>
> [code]
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
> <log4j:configuration>
> <!-- INFO -->
> <appender name="info"
> class="org.apache.log4j.RollingFileAppender">
>
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
>
> </filter>
> </appender>
>
> <root>
> <appender-ref ref="info"/>
>
> </root>
> </log4j:configuration>
> [code]
>
> Is there any thing i need to configure additionally.
>
> ThanQ
> Ajay.
>
> --
> View this message in context:
> http://www.nabble.com/can%27t-see-.log-file-with-log4j-tp16044159p16044159.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>