dimitriytiho / devops-health
Devops handler health service and Log
v2.0.5
2024-12-12 08:34 UTC
Requires
- php: >=8.1
- ext-curl: *
- laravel/framework: ^10 || ^11
- monolog/monolog: ^3
- spatie/laravel-health: ^1.31
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2025-03-12 09:08:41 UTC
README
Добавление канала
В файл ".env"
LOG_CHANNEL=devopshealth LOG_SOURCE_TOKEN=TOKEN LOG_SOURCE_URL=URL
В файл "config/logging.php"
<?php return [ 'channels' => [ ######################################## 'devopshealth' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => \Dimitriytiho\DevopsHealth\Logging\Monolog\LogTailHandler::class, 'handler_with' => [ 'sourceToken' => env('LOG_SOURCE_TOKEN'), 'sourceUrl' => env('LOG_SOURCE_URL'), ], ], ######################################## ], ];