PHPackages                             aledaas/loggerdb - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aledaas/loggerdb

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

aledaas/loggerdb
================

DB-based process logging and email alerting for Laravel apps.

v0.1.4(9mo ago)0321↓50%MITPHPPHP ^8.1

Since Aug 14Pushed 9mo agoCompare

[ Source](https://github.com/aledaas/loggerdb)[ Packagist](https://packagist.org/packages/aledaas/loggerdb)[ RSS](/packages/aledaas-loggerdb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

LoggerDB for Laravel
====================

[](#loggerdb-for-laravel)

DB-based process logging + email alerts.

Install (local path in monorepo)
--------------------------------

[](#install-local-path-in-monorepo)

In your app's root `composer.json`, add:

```
{
  "repositories": [
    { "type": "path", "url": "packages/loggerdb" }
  ]
}
```

Installation via Packagist
--------------------------

[](#installation-via-packagist)

You can install LoggerDB using Composer by running:

```
composer require aledaas/loggerdb
```

LoggerDB supports Laravel versions 8.x, 9.x, and 10.x.

Configuration
-------------

[](#configuration)

To publish the configuration file, run:

```
php artisan vendor:publish --tag=loggerdb-config
```

This will create a `config/loggerdb.php` file where you can customize the package settings:

- `enabled` (bool): Enable or disable logging and email alerts.
- `levels` (array): The log levels to record and send alerts for (e.g. `['error', 'warning', 'critical']`).
- `emails` (array): Email addresses to receive alert notifications.
- `dedup_seconds` (int): Number of seconds to deduplicate alerts to avoid spamming.

Database Migration
------------------

[](#database-migration)

Run the package migrations to create the necessary tables:

```
php artisan migrate
```

Or, if you prefer to run only the package migrations:

```
php artisan migrate --path=vendor/aledaas/loggerdb/database/migrations
```

Usage
-----

[](#usage)

You can log processes using the `ProcessLog` model. Here is an example:

```
use Aledaas\LoggerDB\Models\ProcessLog;

ProcessLog::create([
    'process' => 'OrderProcessing', // The name of the process
    'step' => 'ValidateOrder',      // The current step in the process
    'level' => 'error',             // Log level: e.g. info, warning, error
    'outcome' => 'failed',          // Outcome of the step: e.g. success, failed
    'message' => 'Order ID 1234 failed validation.', // Descriptive message
    'context' => ['order_id' => 1234, 'user_id' => 5678], // Additional context data
]);
```

### Fields explained:

[](#fields-explained)

- `process`: Identifier for the process being logged.
- `step`: Specific step or phase within the process.
- `level`: Severity level of the log entry.
- `outcome`: Result status of the step.
- `message`: Human-readable description.
- `context`: JSON-serializable array with extra metadata.

Email Alerts
------------

[](#email-alerts)

If logging is enabled and the log level or outcome matches the configured criteria, LoggerDB will send alert emails to the addresses specified in the configuration. Alerts are deduplicated based on the `dedup_seconds` setting to prevent email spamming.

License
-------

[](#license)

LoggerDB is open source software licensed under the [MIT License](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance58

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

5

Last Release

272d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/aledaas-loggerdb/health.svg)

```
[![Health](https://phpackages.com/badges/aledaas-loggerdb/health.svg)](https://phpackages.com/packages/aledaas-loggerdb)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)

PHPackages © 2026

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