PHPackages                             kirinnee/laravel-log-enricher - 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. kirinnee/laravel-log-enricher

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

kirinnee/laravel-log-enricher
=============================

Enrich Laravel logging for better structured logging

v1.0.0(3y ago)1103MITPHPPHP ^7.3|^8.0

Since Sep 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kirinnee/laravel-log-enricher)[ Packagist](https://packagist.org/packages/kirinnee/laravel-log-enricher)[ RSS](/packages/kirinnee-laravel-log-enricher/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Log Enricher
====================

[](#laravel-log-enricher)

Automatically adds contextual data into Laravel's logging.

This includes:

- Request Body
- Request Header
- Process ID
- Class, Method, Line and File of the line that was logged
- Laravel Information (Laravel version, PHP version)
- Session Information
- Memory Usage of the current thread

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

[](#installation)

1. Install the package

```
composer require kirinnee/laravel-log-enricher

```

2. Add this package's LogEnhancer class to the tap option of your log channel in **config/logging.php**:

```
'production_stack' => [
    'driver' => 'stack',
    'tap' => [Kirinnee\LaravelLogEnricher\LogEnricher::class],
    'channels' => ['daily', 'slack'],
],

```

3. Generate config file to control behaviour

```
php artisan vendor:publish --tag=laravel-log-enricher-config

```

It has following configurations:

SettingDescriptiontype`request_details`Enrich with Details of the request itself`bool``request_data`Enrich with Request Body`bool``request_header`Enrich with Request Headers`bool``session_data`Enrich with Session Data`bool``memory_usage`Enrich with the current thread's memory usage`bool``app_details`Enrich with Laravels' application details, such as Laravel version, PHP version, Config Cached, Route Cached`bool``log_file_class_method_line`Enrich with the Log caller's file, line, class and method`bool``log_process_id`Enrich with the current process ID`bool``ignore_input_fields`Fields to ignore in the request body (sensitivie fields). For example, passwords, etc`array`Author
------

[](#author)

- [**Kirinnee**](https://github.com/kirinnee)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c5ab36aafea5bf302b6dd0dfe939f5b29c05787275621f19b1519b568d65e21?d=identicon)[kirinnee](/maintainers/kirinnee)

---

Top Contributors

[![kirinnee](https://avatars.githubusercontent.com/u/15990242?v=4)](https://github.com/kirinnee "kirinnee (1 commits)")

### Embed Badge

![Health badge](/badges/kirinnee-laravel-log-enricher/health.svg)

```
[![Health](https://phpackages.com/badges/kirinnee-laravel-log-enricher/health.svg)](https://phpackages.com/packages/kirinnee-laravel-log-enricher)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[illuminate/log

The Illuminate Log package.

6225.3M617](/packages/illuminate-log)[mateusjunges/laravel-kafka

A kafka driver for laravel

7253.6M21](/packages/mateusjunges-laravel-kafka)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[grkamil/laravel-telegram-logging

Send logs to Telegram chat via Telegram bot

163509.2k](/packages/grkamil-laravel-telegram-logging)

PHPackages © 2026

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