goedemiddag/betterstack-logs
最新稳定版本:1.2.0
Composer 安装命令:
composer require goedemiddag/betterstack-logs
包简介
Monolog handler for Better Stack Logs
README 文档
README
This package allows you to write logs to Better Stack Logs.
Installation
First use composer to install the package using the following command
composer require goedemiddag/betterstack-logs
Usage
Add a new channel to the config/logging.php file
'channels' => [ ... 'betterstack' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => \Goedemiddag\BetterStackLogs\BetterStackHandler::class, 'handler_with' => [ 'sourceToken' => env('BETTERSTACK_LOGS_SOURCE_TOKEN'), ], ], ... ]
Set the default log channel to betterstack or add it to the stack channel
Add the following to your .env file
BETTERSTACK_LOGS_SOURCE_TOKEN=your-source-token
统计信息
- 总下载量: 524.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-23