logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jérôme Pramondon" <jpramon...@gmail.com>
Subject Re: can't see .log file with log4j
Date Fri, 14 Mar 2008 09:33:16 GMT
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 <msg2ajay@gmail.com> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message