"라라벨 로그레벨 APP LOG LEVEL"의 두 판 사이의 차이

8번째 줄: 8번째 줄:
APP_LOG_LEVEL=debug
APP_LOG_LEVEL=debug
</source>
</source>
* 이것은 [[config/app.php]] 파일의 log_level 값에 반영됨
* [[config/app.php]] 파일의 log_level 값에 반영됨
<source lang='php'>
<source lang='php'>
'log_level' => env('APP_LOG_LEVEL', 'debug'),
'log_level' => env('APP_LOG_LEVEL', 'debug'),
37번째 줄: 37번째 줄:


==같이 보기==
==같이 보기==
* [[라라벨 APP_DEBUG]]
* [[라라벨 로깅]]
* [[라라벨 로깅]]
* [[Monolog]]
* [[Monolog]]

2017년 7월 10일 (월) 01:16 판

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 }}