Home > Backend Development > PHP Tutorial > laravel中怎么实现系统日志记录

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

WBOY
Release: 2016-06-06 20:21:47
Original
1894 people have browsed it

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>
Copy after login

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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template