"Laravel 로깅"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 라라벨 로깅 문서를 Laravel 로깅 문서로 옮겼습니다)
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 6개는 보이지 않습니다)
3번째 줄: 3번째 줄:
;라라벨 로깅
;라라벨 로깅
;라라벨 로그 기능
;라라벨 로그 기능
* [[Monolog]] 라이브러리 이용
* [[Monolog]] 로깅 라이브러리 사용함
* 로그 파일은 [[storage/logs]] 폴더에 저장됨
* 로그 파일은 [[storage/logs]] 폴더에 저장됨
<source lang='php'>
* 스트링, 배열 등 전달 가능
<syntaxhighlight lang='php'>
use Log;
</syntaxhighlight>
<syntaxhighlight lang='php'>
Log::info('This is some useful information.');
Log::info('This is some useful information.');
Log::warning('Something could be going wrong.');
Log::warning('Something could be going wrong.');
Log::error('Something is really going wrong.');
Log::error('Something is really going wrong.');
Log::info('Log message', ['context' => 'Other helpful information']);
Log::info('Log message', ['context' => 'Other helpful information']);
</source>
</syntaxhighlight>


==참고 자료==
==같이 보기==
* [[라라벨 로그레벨]]
 
==참고==
* http://xpressengine.github.io/laravel-korean-docs/docs/5.0/errors/
* http://xpressengine.github.io/laravel-korean-docs/docs/5.0/errors/


[[분류: Laravel]]
[[분류: Laravel]]

2020년 11월 2일 (월) 02:57 기준 최신판

1 개요[ | ]

Laravel 로깅
라라벨 로깅
라라벨 로그 기능
  • Monolog 로깅 라이브러리 사용함
  • 로그 파일은 storage/logs 폴더에 저장됨
  • 스트링, 배열 등 전달 가능
use Log;
Log::info('This is some useful information.');
Log::warning('Something could be going wrong.');
Log::error('Something is really going wrong.');
Log::info('Log message', ['context' => 'Other helpful information']);

2 같이 보기[ | ]

3 참고[ | ]

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