سؤال

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