📅  最后修改于: 2021-01-07 09:18:51             🧑  作者: Mango
此方法位于目录Phalcon \ Logger下。它为应用程序提供日志记录服务。我们可以使用不同的适配器登录到不同的后端。它提供事务日志记录,配置选项,不同的格式和过滤器。
适配器用于存储记录的消息。支持的适配器列表:
Adapters | Description |
---|---|
Phalcon\Logger\Adapter\File | Logs to a plain text file |
Phalcon\Logger\Adapter\Stream | Logs to a PHP Streams |
Phalcon\Logger\Adapter\Syslog | Logs to the system logger |
Phalcon\Logger\Adapter\FirePHP | Logs to the FirePHP |
critical(
'This is a critical message'
);
$logger->emergency(
'This is an emergency message'
);
$logger->debug(
'This is a debug message'
);
$logger->error(
'This is an error message'
);
$logger->info(
'This is an info message'
);
?>