PHPackages                             improwised/laravel-log-enhancer - 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. improwised/laravel-log-enhancer

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

improwised/laravel-log-enhancer
===============================

Make debugging easier by adding more data to your laravel logs

1.6.0(3y ago)0418MITPHPPHP ^7.3|^8.0

Since Mar 27Pushed 2y agoCompare

[ Source](https://github.com/Improwised/laravel-log-enhancer)[ Packagist](https://packagist.org/packages/improwised/laravel-log-enhancer)[ RSS](/packages/improwised-laravel-log-enhancer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (15)Used By (0)

Laravel Log Enhancer (Laravel 5.6 to Laravel 11.x)
==================================================

[](#laravel-log-enhancer-laravel-56-to-laravel-11x)

Laravel logs help all of us debug issues. We value them the most in production. But, the contextual data of the request is not logged by default. We need more than just *stack trace* to debug the issue easily. The things like **request URL**, **request input data**, **session data**, etc. help us hunt down the exact cause quickly. That's what this *plug-and-play* Laravel package does for you :)

Before
------

[](#before)

[![Before](./images/before.png "Before")](./images/before.png)

After
-----

[](#after)

[![After](./images/after.png "After")](./images/after.png)

Requirements
------------

[](#requirements)

PHPLaravelPackage8.2+11.x8.1+10.xv1.6.08.0+9.xv1.5.08.0+9.xv1.4.07.3+8.xv1.3.07.2.5+7.xv1.2.0&lt;7.2.56.xv1.1.0&lt;7.15.xv1.0.\*Installation
------------

[](#installation)

1. Install the package by running this command in your terminal/cmd:

```
composer require improwised/laravel-log-enhancer

```

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

```
'production_stack' => [
    'driver' => 'stack',
    'tap' => [Improwised\LaravelLogEnhancer\LogEnhancer::class],
    'channels' => ['daily', 'slack'],
],

```

Optionally, you can import config file by running this command in your terminal/cmd:

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

```

It has following configuration settings:

- (bool) log\_request\_details =&gt; Set to *true* if you wish to log request data. [Reference](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/WebProcessor.php)
- (bool) log\_input\_data =&gt; Set to *true* if you wish to log user input data
- (bool) log\_request\_headers =&gt; Set to *true* if you wish to log request headers
- (bool) log\_session\_data =&gt; Set to *true* if you wish to log session data
- (bool) log\_memory\_usage =&gt; Set to *true* if you wish to log memory usage [Reference](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryUsageProcessor.php)
- (bool) log\_git\_data =&gt; Set to *true* if you wish to log git branch name, last commit message, last commit id, staged or (un)staged changes.
- (bool) log\_app\_details =&gt; Set to *true* if you wish to log application data. It will include Laravel Version, PHP Version, Config Cached and Route Cached details.
- (array) ignore\_input\_fields =&gt; If input data is being sent, you can specify the inputs from the user that should not be logged. for example, password,cc number, etc.

Authors
-------

[](#authors)

- [**Improwised**](https://github.com/improwised) - *Initial work*

See also the list of [contributors](https://github.com/Improwised/laravel-log-enhancer/graphs/contributors) who participated in this project.

License
-------

[](#license)

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

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to [plant trees](https://www.bbc.co.uk/news/science-environment-48870920). If you contribute to our forest you’ll be creating employment for local families and restoring wildlife habitats.

Special Thanks to
-----------------

[](#special-thanks-to)

- [Laravel](https://laravel.com) Community

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 81.7% 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 ~137 days

Recently: every ~222 days

Total

14

Last Release

1174d ago

PHP version history (4 changes)v1.0.0PHP &gt;=7.1.3

v1.1.0PHP ^7.2

v1.3.0PHP ^7.3

v1.3.1PHP ^7.3|^8.0

### Community

Maintainers

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

---

Top Contributors

[![gauravmak](https://avatars.githubusercontent.com/u/11887260?v=4)](https://github.com/gauravmak "gauravmak (49 commits)")[![eduardlleshi](https://avatars.githubusercontent.com/u/6278258?v=4)](https://github.com/eduardlleshi "eduardlleshi (4 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![mnastalski](https://avatars.githubusercontent.com/u/10223434?v=4)](https://github.com/mnastalski "mnastalski (1 commits)")[![Nirav-Gaglani](https://avatars.githubusercontent.com/u/87528974?v=4)](https://github.com/Nirav-Gaglani "Nirav-Gaglani (1 commits)")[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (1 commits)")[![djallits](https://avatars.githubusercontent.com/u/10674226?v=4)](https://github.com/djallits "djallits (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![hirenkeraliya](https://avatars.githubusercontent.com/u/22992703?v=4)](https://github.com/hirenkeraliya "hirenkeraliya (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/improwised-laravel-log-enhancer/health.svg)

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

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M517](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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