PHP code example of llewellyn-kevin / raygun-logger

1. Go to this page and download the library: Download llewellyn-kevin/raygun-logger 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/ */

    

llewellyn-kevin / raygun-logger example snippets


[
    'channel' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['daily', 'raygun'],
            // ...
        ],

        // ...

        'raygun' => [
            'driver' => 'raygun',
        ],
    ],
]

RaygunLogger::handle(new Exception('The fox already jumped over the dog.'));

RaygunLogger::handle(new Exception('The fox already jumped over the dog.'), [
    'foxname' => 'Tod',
    'dogname' => 'Copper',
]);

RaygunLogger::level(Exception::class, LogLevel::CRITICAL);
bash
php artisan ragun:test
bash
php artisan ragun:test "The fox already jumped over the dog."
bash
php artisan vendor:publish --tag=config