php - monolog pushHandler 第二个参数有什么意义
PHP中文网
PHP中文网 2017-04-10 15:18:11
0
1
378

DEBUG (100): Detailed debug information.

INFO (200): Interesting events. Examples: User logs in, SQL logs.

NOTICE (250): Normal but significant events.

WARNING (300): Exceptional occurrences that are not errors. Examples: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

ERROR (400): Runtime errors that do not require immediate action but should typically be logged and monitored.

CRITICAL (500): Critical conditions. Example: Application component unavailable, unexpected exception.

ALERT (550): Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

EMERGENCY (600): Emergency: system is unusable.

指定了日志级别,但是貌似得日志记录没啥影响?

PHP中文网
PHP中文网

认证0级讲师

全部回复(1)
刘奇

我记得在 github 看到过, 如果第二个参数指定的事 Notice, 那么 addDebug 和 addInfo 的 log 会被忽略.
也就是最低错误级别.

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!