문제

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