라라벨 로그레벨 APP LOG LEVEL

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:57 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

Laravel Log Severity Levels
라라벨 APP_LOG_LEVEL
라라벨 log_level
라라벨 로그레벨
  • .env 파일의 APP_LOG_LEVEL에 설정함
APP_LOG_LEVEL=debug
'log_level' => env('APP_LOG_LEVEL', 'debug'),

2 예시[ | ]

  • 지정한 것보다 등급이 높은 로그를 출력함
  • 대략 개발서버에는 debug, 운영서버에는 error로 설정하면 될 듯
log_level 값 debug error
debug O
info O
notice O
warning O
error O O
critical O O
alert O O
emergency O O

3 같이 보기[ | ]

4 참고[ | ]

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