로그 레벨

Jmnote bot (토론 | 기여)님의 2020년 9월 16일 (수) 00:16 판 (봇: 로그을(를) 로깅(으)로 분류 대체함)
log level
로그 수준, 로그 출력 수준, 로그 레벨

1 예시 1

Error
Critical
Warning
Information
Verbose[1]

2 예시 2: log4j

OFF
FATAL
ERROR
WARN
INFO
DEBUG
TRACE

3 예시 3: syslog ★

0 Emergency
1 Alert
2 Critical
3 Error
4 Warning
5 Notice
6 Informational
7 Debug[2]

4 예시 4: PSR

class LogLevel
{
    const EMERGENCY = 'emergency';
    const ALERT     = 'alert';
    const CRITICAL  = 'critical';
    const ERROR     = 'error';
    const WARNING   = 'warning';
    const NOTICE    = 'notice';
    const INFO      = 'info';
    const DEBUG     = 'debug';
}

5 같이 보기

6 주석

  1. Undefined 도 있지만 Verbose와 동일.
  2. 의 Table 2. Syslog Message Severities (8단계)

7 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}