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

2024-11-22 04:06:03
推荐回答(1个)
回答1:

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