PHPackages                             adrianoalves/laravel-exceptionlog - 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. [Database &amp; ORM](/categories/database)
4. /
5. adrianoalves/laravel-exceptionlog

ActiveLaravel-package[Database &amp; ORM](/categories/database)

adrianoalves/laravel-exceptionlog
=================================

Simple Laravel Exception and Error Persistence Log Layer

v1.1.0(6y ago)028MITPHPPHP &gt;7.2

Since Mar 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/adrianoalves/ExceptionLog)[ Packagist](https://packagist.org/packages/adrianoalves/laravel-exceptionlog)[ RSS](/packages/adrianoalves-laravel-exceptionlog/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

ExceptionLog Custom Laravel 7+ Package
--------------------------------------

[](#exceptionlog-custom-laravel-7-package)

*Simplest/Minimum Laravel Exception Log Persistence Layer Package*

#### Installation

[](#installation)

Use `composer require adrianoalves/laravel-exceptionlog` to install the package.

Execute `php artisan migrate` to create the *logs* database table

#### How to Use

[](#how-to-use)

Just call the following Method in your application:

```
try{
  // ... put your watched code here
}
catch( \Exception $exception ){
    ExceptionLog::persist( $exception, ExceptionLog\LevelMapper::LEVEL_ERROR_APPLICATION );
}
```

It is simple as pie :)

#### Log Levels

[](#log-levels)

The package has a much simple mapper to organize exceptions in levels/categories.

```
const LEVEL_NOTICE            = 1;

    const LEVEL_WARNING           = 2;

    const LEVEL_ERROR_APPLICATION = 3;

    const LEVEL_ERROR_DATABASE    = 4;

    const LEVEL_ERROR_SERVER      = 5;

    const LEVEL_ERROR_CONSOLE     = 6;

    const LEVEL_ERROR_JOB         = 7;

    public static $mapper = [
        1 => [ 'label' => 'Notificação' ],
        2 => [ 'label' => 'Aviso' ],
        3 => [ 'label' => 'Erro: Sistema' ],
        4 => [ 'label' => 'Erro: Persistência' ],
        5 => [ 'label' => 'Erro: Servidor' ],
        6 => [ 'label' => 'Erro: Console' ],
        7 => [ 'label' => 'Erro: Execução de Job' ],
    ];
```

You can create and customize your own levels and dictionaries to better identify your application Exceptions.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2235d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5abbf92f8d6a33e8d1a3b32242a4a13338845c17f2e84570090b9805bb85cb5?d=identicon)[adrianoalves](/maintainers/adrianoalves)

---

Top Contributors

[![adrianoalves](https://avatars.githubusercontent.com/u/350381?v=4)](https://github.com/adrianoalves "adrianoalves (13 commits)")

---

Tags

logphplaravelloggingmysqlexception

### Embed Badge

![Health badge](/badges/adrianoalves-laravel-exceptionlog/health.svg)

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

###  Alternatives

[danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.

135934.5k1](/packages/danielme85-laravel-log-to-db)[altek/accountant

The auditing &amp; accountability package for Laravel's Eloquent ORM.

92954.3k4](/packages/altek-accountant)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[chr15k/laravel-mysql-encrypt

Laravel database encryption using native MySQL functions

119.9k](/packages/chr15k-laravel-mysql-encrypt)

PHPackages © 2026

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