PHPackages                             edi-prasetyo/error-log-capture - 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. edi-prasetyo/error-log-capture

ActiveLibrary[Database &amp; ORM](/categories/database)

edi-prasetyo/error-log-capture
==============================

Lightweight Laravel package to automatically capture exceptions and store error logs in database.

v1.0.0(4mo ago)010MITPHPPHP ^8.1

Since Dec 19Pushed 4mo agoCompare

[ Source](https://github.com/edi-prasetyo/error-log-capture)[ Packagist](https://packagist.org/packages/edi-prasetyo/error-log-capture)[ RSS](/packages/edi-prasetyo-error-log-capture/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Error Log Capture
=================

[](#error-log-capture)

[![Latest Version](https://camo.githubusercontent.com/87f73e98852a52daf81d54bdc254dafefcc826a727f802ec25f42dd09e60e76b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6564692d707261736574796f2f6572726f722d6c6f672d63617074757265)](https://packagist.org/packages/edi-prasetyo/error-log-capture)[![PHP Version](https://camo.githubusercontent.com/3e41095f4ad1c6ad78f988bd1c107f87972f334143c3ba814165a03e1f43a63c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/)[![Laravel](https://camo.githubusercontent.com/228acf8ab532968846399101dd30ccdc70ada1e107f41d5ef50e2e365734d49d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532422d4646324432303f6c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://laravel.com/)

> Paket Laravel yang ringan untuk menangkap dan menyimpan log kesalahan di database secara otomatis.

Package ini membantu developer **melihat error langsung dari database** tanpa harus membuka file log bawaan Laravel, dan ini sangat di perlukan saat aplikasi sudah di live production. Developer bisa membuat UI di dashboard untuk melihat Error Apa saja yang terjadi selama aplikasi sudah live dan bisa langsung eksekusi fixing problem tanpa harus mencari dimana letak errornya, karena package ini sudah menyimpan pesan error, lokasi file, akses url yang error dll.

---

Fitur Utama
-----------

[](#fitur-utama)

- ✅ Auto-capture exception (Laravel 10, 11, 12)
- ✅ Menyimpan error ke database
- ✅ Count Error jika terjadi pada Error yang Sama
- ✅ Zero-config (langsung jalan setelah install)
- ✅ Ringan &amp; production-ready
- ✅ Custom Error 500 dengan informasi id dan code

---

Instalasi
---------

[](#instalasi)

```
composer require edi-prasetyo/error-log-capture
```

Jalankan migration:

```
php artisan migrate
```

> Setelah itu package **langsung aktif otomatis**.

---

Konfigurasi
-----------

[](#konfigurasi)

Publish config jika ingin menyesuaikan behavior:

```
php artisan vendor:publish --tag=error-log-capture-config
```

File config:

```
config/error-log-capture.php
```

### Contoh konfigurasi

[](#contoh-konfigurasi)

```
return [
    'enabled' => true,

    'ignore' => [
        \Illuminate\Validation\ValidationException::class,
        \Symfony\Component\HttpKernel\Exception\HttpException::class,
    ],

    'trace_limit' => 10,
];
```

---

Auto Capture (Default)
----------------------

[](#auto-capture-default)

Tanpa perlu konfigurasi tambahan:

```
Exception terjadi → otomatis disimpan ke database

```

---

Manual Capture (Opsional)
-------------------------

[](#manual-capture-opsional)

Jika ingin mencatat error secara manual:

```
use EdiPrasetyo\ErrorLogCapture\Facades\ErrorLog;

try {
    // kode berpotensi error
} catch (\Throwable $e) {
    ErrorLog::capture($e);
}
```

---

Cara Mengirim data dari Controller
----------------------------------

[](#cara-mengirim-data-dari-controller)

### Semua Error

[](#semua-error)

```
use EdiPrasetyo\ErrorLogCapture\Models\ErrorLogModel;

$errors = ErrorLogModel::all();
return $errors
```

---

Menampilkan Custom Informasi Error 500
--------------------------------------

[](#menampilkan-custom-informasi-error-500)

Untuk menampilkan halaman **custom error 500** beserta informasi Error ID,

```
php artisan vendor:publish --tag=error-log-capture-views
```

---

License
-------

[](#license)

MIT License © Edi Prasetyo

---

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e71ff3460c605372748b9139ad65fdbae2bdbf8e67593911cbc08c96294555?d=identicon)[edi-prasetyo](/maintainers/edi-prasetyo)

---

Top Contributors

[![edi-prasetyo](https://avatars.githubusercontent.com/u/56353009?v=4)](https://github.com/edi-prasetyo "edi-prasetyo (2 commits)")

---

Tags

laravelloggingdatabaseexceptionerrorbug

### Embed Badge

![Health badge](/badges/edi-prasetyo-error-log-capture/health.svg)

```
[![Health](https://phpackages.com/badges/edi-prasetyo-error-log-capture/health.svg)](https://phpackages.com/packages/edi-prasetyo-error-log-capture)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[ntanduy/cloudflare-d1-database

Easy configuration and setup for D1 Database connections in Laravel.

215.4k](/packages/ntanduy-cloudflare-d1-database)

PHPackages © 2026

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