ログアクション public function executeIndex(sfWebRequest $request)
{
$this->logMessage('ログです');
$this->logMessage('エラーです','err');
}
テンプレート <html><?php use_helper('Debug') ?>
<?php log_message('エラーです', 'err') ?></html>
ヘルパー sfContext::getInstance()->getLogger()->err('エラーです');
デフォルトのロギング設定 (frontend/config/logging.yml) prod:
logger:
param:
level: err
参考http://www.symfony-project.org/gentle-introduction/1_4/ja/16-Application-Management-Tools |
|