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