Kavin,

If you use the array config method you can set the file dynamically. This is 
what I am doing.

Mike

From: Kavin Mehta [mailto:kavinme...@gmail.com]
Sent: Monday, July 30, 2012 7:45 PM
To: log4php-user@logging.apache.org
Subject: How to dynamically change the file name of log file

Hi,

I am using a relative path for the name of the log file in my appender. I am 
using <param name="file" value="../admin/logging/log4php.log" />. I find this 
more helpful then an absolute path, because our developers work across 
different OS systems. I was wondering if there is a way to change this setting 
dynamically or may give it some variable name?

Thanks,
NooB

Reply via email to