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

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
6번째 줄: 6번째 줄:
* 로그 파일은 [[storage/logs]] 폴더에 저장됨
* 로그 파일은 [[storage/logs]] 폴더에 저장됨
* 스트링, 배열 등 전달 가능
* 스트링, 배열 등 전달 가능
<source lang='php'>
<syntaxhighlight lang='php'>
use Log;
use Log;
</source>
</syntaxhighlight>
<source lang='php'>
<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>
 
==같이 보기==
* [[라라벨 로그레벨]]


==참고==
==참고==

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