/* Apply for Symfony 1.4 */
$logger = new sfFileLogger(new sfEventDispatcher(), array('file' => sfConfig::get('sf_log_dir') . '/my-gateway.log'));
$content = 'Call API getUserBalance() --> failed';
$logger->log($content, sfFileLogger::INFO);
Title:
Symfony - Write your log to custom file
Description:
/* Apply for Symfony 1.4 */ $logger = new sfFileLogger(new sfEventDispatcher(), array('file' => sfConfig::get('sf_log_dir...
...
Rating:
4