Hi All,

 

I have been using log4php for a while now. I just had a query about the
Configurator file -

 

I'm using the XML format for the config file and it looks like -

 

<!-- Test appende to log in loggerTest File-->

    <appender name="testAppender" class="LoggerAppenderRollingFile" >

        <layout class="LoggerLayoutTTCC" />

        <param name="file" value="/var/www/trunk/logs/loggerTest.log" />

        <param name="append" value="true" />

        <param name="maxBackupIndex" value="5" />

        <param name="maxFileSize" value="100KB" />

    </appender>

 

The problem that I'm facing is that when I port the same file to some other
system but to a different directory say /home/testdir instead of /var/www
then it will not be able to find that directory and will not create the log
file.

 

So, is there any way that we can specify relative paths instead of absolute
paths?

 

--

Thanks,

Karan Jain 

 

Reply via email to