dimitriytiho/devops-health

Devops handler health service and Log

v2.0.5 2024-12-12 08:34 UTC

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'),
            ],
        ],
    ########################################
    ],
];