>  기사  >  백엔드 개발  >  laravel中怎么实现系统日志记录

laravel中怎么实现系统日志记录

WBOY
WBOY원래의
2016-06-06 20:21:471827검색

laravel中怎么实现系统日志记录(操作日志),并且能够容易分析。

回复内容:

laravel中怎么实现系统日志记录(操作日志),并且能够容易分析。

记录日志:

<code>Log::info('This is some useful information.');

Log::warning('Something could be going wrong.');

Log::error('Something is really going wrong.');</code>

日志记录文档:
中文:http://www.golaravel.com/laravel/docs/5.0/errors/#configuration
官方[English]:http://laravel.com/docs/5.2/errors

日志分析:LogViewer – Laravel 5 日志查看器
github地址:https://github.com/ARCANEDEV/LogViewer

可以考虑使用laravel,引用的第三方库 monolog ,记录日志。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.