PHPackages                             unisharp/laravel-loggable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. unisharp/laravel-loggable

ActiveLibrary

unisharp/laravel-loggable
=========================

it can generate entities by arca principle

4511PHP

Since Mar 17Pushed 9y ago11 watchersCompare

[ Source](https://github.com/UniSharp/laravel-loggable)[ Packagist](https://packagist.org/packages/unisharp/laravel-loggable)[ RSS](/packages/unisharp-laravel-loggable/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Log Writer
==================

[](#laravel-log-writer)

This package formats exceptions before they are written to `laravel.log`.

Installation
------------

[](#installation)

1. Install via composer

    ```
    composer require unisharp/laravel-filemanager

    ```
2. Set up `config/app.php`

    ```
    'providers' => [
    	...
    	Unisharp\Loggable\LoggableServiceProvider::class,
    ],

    ```

    ```
    'aliases' => [
    	...
    	'Loggable' => Unisharp\Loggable\Facades\Loggable::class,
    ],

    ```
3. Replace default exception reporter in `App\Exceptions\Handler.php`

    ```
    public function report(Exception $e)
    {
    	// parent::report($e);
    	return \Loggable::report($e);
    }

    ```

Log display types
-----------------

[](#log-display-types)

- Simple log

    ```
    404 not found. | (GET) http://your-domain/js/jquery.min.map | User ID : null | IP: 127.0.0.1

    ```

    ```
    Model not found. | (GET) http://your-domain/article/999 | User ID : 6 | IP: 127.0.0.1

    ```
- Detail log with trace and input

    ```
    2016-11-17 19:03:46] local.DEBUG: {
        "user_id": 4,
        "ip": "::1",
        "action_trace": {
            "0": "Visited : OrderController | Action : create",
            "1": "Visited : CartController  | Action : count | Type : Ajax",
            "2": "Visited : CartController  | Action : show",
            "3": "Visited : CartController  | Action : count | Type : Ajax",
            "4": "Visited : OrderController | Action : create",
            "5": "Visited : CartController  | Action : count | Type : Ajax",
            "6": "Visited : OrderController | Action : store",
            "FormRequest failed": {
                "receiver_name": "",
                "receiver_phone": "",
                "note": "",
                "_token": "Mvi43arsvzrqH5RuzQVPl0GdU2xVwE7FO79Lxw1A"
            }
        }
    }

    ```

Handled exceptions
------------------

[](#handled-exceptions)

- Detail log :
- Form request error
- Simple log :
- TokenMismatchException
- ModelNotFoundException
- NotFoundHttpException
- HttpException
- Both simple log and original stack trace will be written when other exceptions occurs.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49773ea5050ec1d004a506cc1e11be08d6e87339120b5d223b8921e3f671153c?d=identicon)[g0110280](/maintainers/g0110280)

![](https://avatars.githubusercontent.com/u/181350?v=4)[Youchen Lee (isacl)](/maintainers/youchenlee)[@youchenlee](https://github.com/youchenlee)

---

Tags

exceptionexception-handlerlaravelreport

### Embed Badge

![Health badge](/badges/unisharp-laravel-loggable/health.svg)

```
[![Health](https://phpackages.com/badges/unisharp-laravel-loggable/health.svg)](https://phpackages.com/packages/unisharp-laravel-loggable)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
