gpxcat/laravel_log_formatter
Composer 安装命令:
composer require gpxcat/laravel_log_formatter
包简介
自製的 Laravel Log 格式化
README 文档
README
Add the .env file:
LOG_CHANNEL=stack
GRAYLOG_URL=10.1.6.38
GRAYLOG_PORT=12201
IFCONFIG_URL=http://10.1.1.188:8080/ip
Add the config to your config/logging.php file:
'stack' => [ 'driver' => 'stack', 'channels' => ['daily', 'graylog'], 'ignore_exceptions' => true, // ... ],
'daily' => [ 'driver' => 'daily', // ... 'tap' => [\Gpxcat\LaravelLogFormatter\Formatter::class], // ... ],
'graylog' => [ 'driver' => 'custom', 'via' => \Gpxcat\LaravelLogFormatter\GraylogLogger::class, 'host' => env('GRAYLOG_URL', ''), 'port' => env('GRAYLOG_PORT', ''), 'level' => env('LOG_LEVEL', 'debug'), ],
统计信息
- 总下载量: 694
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-04-29