schmidtmilena/laravel-database-logger
Composer 安装命令:
composer require schmidtmilena/laravel-database-logger
包简介
Database logger for Laravel 8
README 文档
README
The schmidtmilena/laravel-database-logger package provides custom log handler for Laravel 8 that can store log events to SQL databases.
Installation
You can install the package via composer:
composer require schmidtmilena/laravel-database-logger
You can publish and run the migrations with:
php artisan vendor:publish --tag=migrations
Usage
After publishing migration run:
php artisan migrate
Add custom driver to your logging.php file:
'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['mysql'], ], // [...] 'mysql' => [ 'driver' => 'monolog', 'via' => SchmidtMilena\DbLogger\Monolog::class, 'handler' => SchmidtMilena\DbLogger\DbLoggerHandler::class, 'formatter' => SchmidtMilena\DbLogger\Formatter::class, 'name' => 'mysqllogger' ],
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-24