You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Dorner, Thomas" <Th...@t-systems.com> on 2004/11/03 12:47:47 UTC
log4j help pls
Hi all,
I am sorry for asking this non axis question, but I cant find a solution
whenn googling.
I use log4j in my project and so I have the log4j.config.xml and therefore
the appenders.
The appender do have a attribute name="File" and a value="C:\\..\\..\\" with
the absolute path,
Which define where log4j writes the log-file.
My question is, is it possible to define/describe a relativ path where log4j
write the log-file????
<appender name="webservices" class="org.apache.log4j.RollingFileAppender">
<param name="File"
value="C:\\projects\\sources\\PDMWebConnector\\logs\\webservices.log"/>
<param name="MaxFileSize" value="1000KB"/>
Thanks in advance
Thomas
Re: log4j help pls
Posted by sm...@spansurf.com.
The short answer is yes.
Don't put the absolute path name just a relative path name.
This has a affect depending on the context.
If it is a stand alone application it will be a relative path from the
directory in which you started the application.
If you are using from a WEB Context it will be a relative path from the WEB-
INF/ directory of your web context
Regards
Steve
Quoting "Dorner, Thomas" <Th...@t-systems.com>:
> Hi all,
>
>
>
> I am sorry for asking this non axis question, but I cant find a solution
> whenn googling.
>
>
>
> I use log4j in my project and so I have the log4j.config.xml and therefore
> the appenders.
>
> The appender do have a attribute name="File" and a value="C:\\..\\..\\" with
> the absolute path,
>
> Which define where log4j writes the log-file.
>
>
>
> My question is, is it possible to define/describe a relativ path where log4j
> write the log-file????
>
>
>
>
>
> <appender name="webservices" class="org.apache.log4j.RollingFileAppender">
>
> <param name="File"
> value="C:\\projects\\sources\\PDMWebConnector\\logs\\webservices.log"/>
>
> <param name="MaxFileSize" value="1000KB"/>
>
>
>
>
>
> Thanks in advance
>
> Thomas
>
>
>
>
>
>
>
>
>
>