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.
指定了日志級(jí)別,但是貌似得日志記錄沒啥影響?
認(rèn)證0級(jí)講師
我記得在 github 看到過, 如果第二個(gè)參數(shù)指定的事 Notice, 那么 addDebug 和 addInfo 的 log 會(huì)被忽略.
也就是最低錯(cuò)誤級(jí)別.