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

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

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


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


记录日志:

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

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

Log::error('Something is really going wrong.');

日志记录文档:
中文: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

【热门文章】
【热门文章】