【发布时间】:2013-05-01 03:00:31
【问题描述】:
我正在尝试在我的 symfony 网站中使用 monolog。
实际上,我将这些行添加到控制器的操作中,以保存发生的每个操作,即单击按钮、更改数据库...
public function indexAction()
{
$logger = $this->get('logger');
$logger->info('I just got the logger');
$logger->err('An error occurred');
// ...
}
but I don't know where to find the output and how even to make the first steps with monolog.
有人可以帮我吗?
【问题讨论】:
-
我是否应该在 config.yml 文件中添加一些内容以导入包或其他内容?
-
找不到页面@DonCallisto
-
@DonCallisto 表示stackoverflow.com/questions/16410811/…