PHP code example of dimitriytiho / devops-health

1. Go to this page and download the library: Download dimitriytiho/devops-health library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dimitriytiho / devops-health example snippets




return [  
    'channels' => [
    ########################################
        'devopshealth' => [
            'driver' => 'monolog',
            'level' => env('LOG_LEVEL', 'debug'),
            'handler' => \Dimitriytiho\DevopsHealth\Logging\Monolog\LogtailHandler::class,
            'handler_with' => [
                'sourceToken' => env('DEVOPS_SOURCE_TOKEN'),
            ],
        ],
    ########################################
    ],
];

return [
  'notifications' => [
  'enabled' => true,
    'notifications' => [
        \Dimitriytiho\DevopsHealth\Notifications\DevopsHealthNotification::class => ['devops_health'],
    ],
  ],
  'notifiable' => Spatie\Health\Notifications\Notifiable::class,
];
dotenv
DEVOPS_SOURCE_TOKEN=TOKEN
LOG_CHANNEL=devopshealth