logavel/track-logs

This Package will helping you to track PHP logs

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/logavel/track-logs

1.0.5 2023-10-27 09:13 UTC

This package is not auto-updated.

Last update: 2025-12-20 14:30:54 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);
        }
    }