logavel/track-logs

This Package will helping you to track PHP logs

Maintainers

Package info

github.com/daxitzadafiya/track-logs

pkg:composer/logavel/track-logs

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.5 2023-10-27 09:13 UTC

This package is not auto-updated.

Last update: 2026-05-09 16:10:23 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);
        }
    }