I am using symfony 1.x framework and usually all the logs are put under repective applications /log/_dev/prod.log

But I want to change the log file name and path and where can I configure it.

I have got a liitle more info here

but it is not given here about the file path and name config.

有帮助吗?

解决方案

I have got a solution for this.

$log = new sfFileLogger();
$log->initialize(array ('file' => '<path with file name>',));
$log->log($message, $level);

Thanks

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top