PHP code example of lmsomeco / loki

1. Go to this page and download the library: Download lmsomeco/loki 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/ */

    

lmsomeco / loki example snippets



use Lmsomeco\Loki\LokiLogger;

...

'channels' => [
    ...
    'loki' => [
        'driver' => 'custom',
        'via' => LokiLogger::class,
        'data' => [
            'url' => 'https://examplelogger.com/api/endpoint',
            'token' => '12345678901234567'
        ]
    ]
]