logavel/track-logs

This Package will helping you to track PHP logs

1.0.5 2023-10-27 09:13 UTC

This package is not auto-updated.

Last update: 2024-06-08 07:14:36 UTC


README

Add this line in App/Exceptions/Handler.php

App/Exceptions/Handler.php

use Logavel\TrackLogs\Log;
use Throwable;

public function report(Throwable $exception)
    {
        if ($this->shouldReport($exception)) {
            Log::log($exception->getMessage());
            parent::report($exception);
        }
    }