PHPackages                             mjy191/my-logs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mjy191/my-logs

ActiveLibrary

mjy191/my-logs
==============

记录业务日志，请求和输出日志，mysql日志

1.0.6(2y ago)01.4k↓100%1MITPHP

Since Sep 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mjy191/my-logs)[ Packagist](https://packagist.org/packages/mjy191/my-logs)[ RSS](/packages/mjy191-my-logs/feed)WikiDiscussions master Synced today

READMEChangelog (7)DependenciesVersions (8)Used By (1)

1.基本介绍
------

[](#1基本介绍)

### 1.1 项目介绍

[](#11-项目介绍)

> 基于laravel框架的日志，可以记录输入、输出日志、mysql操作日志，通过logid查询一次请求的所有日志

### 1.2 配置

[](#12-配置)

在laravel的 app\\Providers\\AppServiceProvider.php添加如下代码 记录mysql操作日志

```
    public function boot()
    {
        MyLogs::dBLog(DB::class);
    }

```

新建app\\Http\\Middleware\\Logs.php,记录请求、返回日志

```
