tyea/redlog
Composer 安装命令:
composer require tyea/redlog
包简介
A Laravel package for writing log messages to a MySQL, PostgreSQL, SQLite, or SQL Server database
关键字:
README 文档
README
About
Red Log is a Laravel package for writing log messages to a MySQL, PostgreSQL, SQLite, or SQL Server database.
Requirements
- PHP >= 7.0
- Laravel >= 5.5
Installation
composer require tyea/redlog
Usage
Update your .env and .env.example files:
LOG_CHANNEL=database
LOG_TABLE=logs
Update your config/logging.php file:
"database" => [
"driver" => "monolog",
"handler" => "Tyea\\RedLog\\DatabaseHandler",
"table" => env("LOG_TABLE", "logs")
]
Run these commands:
php artisan log:table
php artisan migrate
Update your app/Console/Kernel.php file:
$schedule->command("log:clear")->daily();
Author
Written by Tom Yeadon in April 2020.
统计信息
- 总下载量: 382
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-03-29