PHP code example of goedemiddag / betterstack-logs
1. Go to this page and download the library: Download goedemiddag/betterstack-logs 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/ */
goedemiddag / betterstack-logs example snippets
'channels' => [
...
'betterstack' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => \Goedemiddag\BetterStackLogs\BetterStackHandler::class,
'handler_with' => [
'sourceToken' => env('BETTERSTACK_LOGS_SOURCE_TOKEN'),
],
],
...
]