PHP code example of wiebekn / dawilog-php

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

    

wiebekn / dawilog-php example snippets


composer 

    public function register()
    {
        $this->reportable(function (Throwable $e) {
            if (app()->bound('dawilog') && $this->shouldReport($e)) {
                app('dawilog')->sendException($e);
            }
        });
    }

    public function report(Throwable $exception)
    {
        if (app()->bound('dawilog') && $this->shouldReport($exception)) {
            app('dawilog')->sendException($exception);
        }

        parent::report($exception);
    }

    public function report(Exception $exception)
    {
        if ($this->shouldReport($exception) && app()->bound('dawilog')) {
            app('dawilog')->sendException($exception);
        }
    
        parent::report($exception);
    }

php artisan vendor:publish --provider="Dawilog\Laravel\ServiceProvider" --tag="config"