starring-jane/logging
最新稳定版本:v1.2.0
Composer 安装命令:
composer require starring-jane/logging
包简介
Logging made for use inside laravel apps
README 文档
README
#Starring Jane logging tool for Laravel
Available channels
- Teams
- Loggly
Installation
Run the composer install command to install the package
composer require starring-jane/logging
Configuration
Optionally you can publish the config file with:
php artisan vendor:publish --provider="StarringJane\Logging\LoggingServiceProvider" --tag="config"
Set up the following environment variables in your .env file:
TEAMS_WEBHOOK_URL= LOGGLY_TOKEN= LOGGLY_TAG=
When one or multiple of these variables are not set, the corresponding logging channel will not be used.
Finally, all you need to do is add the following line to your config/logging.php file and enable the channel in stack channels or as a single channel:
'channels' => [ ... 'starringjane' => [ 'driver' => 'custom', 'via' => \StarringJane\Logging\Logging\LoggerChannel::class, 'level' => 'notice', ], ... ],
统计信息
- 总下载量: 2.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-25