// in an action $this->logMessage($message, $level); // in a template <?php echo log_message($message, $level) ?> 例: <code> // in a template <?php use_helper('Debug') ?> <?php echo log_message('{mainActions} been there', 'err') ?> // in an action $this->getLogger()->info($message); $this->getLogger()->err($message); $this->getLogger()->warning($message); // from anywhere in your application sfCont
![デバッグメッセージの出力方法 - Pistolfly](https://cdn-ak-scissors.b.st-hatena.com/image/square/cbf9f41c980033fa06efe6a0a3f8ebe12030f134/height=288;version=1;width=512/https%3A%2F%2Fwww.pistolfly.com%2Fweblog%2Fimages%2Ficon.png)