dimitriytiho / devops-health
Devops handler health service and Log
v1.0.1
2024-08-15 11:49 UTC
Requires
- php: >=8.1
- ext-curl: *
- monolog/monolog: ^3
- shuvroroy/filament-spatie-laravel-health: ^2.0
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2024-10-15 13:51:39 UTC
README
Добавление канала
В файл ".env"
DEVOPS_SOURCE_TOKEN=TOKEN LOG_CHANNEL=devopshealth
В файл "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('DEVOPS_SOURCE_TOKEN'), ], ], ######################################## ], ];
Включение Health по инструкции https://github.com/shuvroroy/filament-spatie-laravel-health
Добавление канала в конфиг Health
В файл "config/health.php"
return [ 'notifications' => [ 'enabled' => true, 'notifications' => [ \Dimitriytiho\DevopsHealth\Notifications\DevopsHealthNotification::class => ['devops_health'], ], ], 'notifiable' => Spatie\Health\Notifications\Notifiable::class, ];