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

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

vaibhav/laravel-log-enhancer
============================

Make debugging easier by adding more data to your laravel logs

00PHP

Since Aug 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/vaibhav140494/laravel-log-enhancer)[ Packagist](https://packagist.org/packages/vaibhav/laravel-log-enhancer)[ RSS](/packages/vaibhav-laravel-log-enhancer/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/83717d870cf4b6dae44011dff76f1ff55040560f8ff09651d11f0e1ca533209b/68747470733a2f2f706f7365722e707567782e6f72672f766169626861762f6c61726176656c2d6c6f672d656e68616e6365722f762f737461626c65)](https://packagist.org/packages/vaibhav/laravel-log-enhancer)[![Total Downloads](https://camo.githubusercontent.com/5501341f1bebb1c3a5ae9d36f49ba63170fbbcd04840e1acfa137a527c8f5767/68747470733a2f2f706f7365722e707567782e6f72672f766169626861762f6c61726176656c2d6c6f672d656e68616e6365722f646f776e6c6f616473)](https://packagist.org/packages/vaibhav/laravel-log-enhancer)[![License](https://camo.githubusercontent.com/2d3a403f4c5c3d61991c6732952c31c9c40ba989317764b1d757201f33364ec2/68747470733a2f2f706f7365722e707567782e6f72672f766169626861762f6c61726176656c2d6c6f672d656e68616e6365722f6c6963656e7365)](https://packagist.org/packages/vaibhav/laravel-log-enhancer)[![StyleCI](https://camo.githubusercontent.com/629b25c498be3fde46a4852c3f0e72e2c865b5c469c758cd35ec0bf586913446/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132363937303336392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/126970369)[![Build Status](https://camo.githubusercontent.com/cb30b63ed1de37758ba3bd106b8492af87422f59bd40a40b1a9d0ee87a145760/68747470733a2f2f7472617669732d63692e6f72672f766169626861762f6c61726176656c2d6c6f672d656e68616e6365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vaibhav/laravel-log-enhancer)

Laravel Log Enhancer (Laravel 5.6 to Laravel 5.8)
=================================================

[](#laravel-log-enhancer-laravel-56-to-laravel-58)

Laravel's logging system helps a lot for storing data as well as while troubleshooting some hidden bugs. The data related to the exception automatically gets logged whenever something goes wrong.

Sometimes, 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 :)

**Note**: For Laravel 5.5, you may use [Slack Error Notifier](https://github.com/vaibhav/slack-error-notifier) package.

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

[](#requirements)

- PHP 7.1.3+
- Laravel 5.6+

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

[](#installation)

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

```
composer require vaibhav/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' => [vaibhav\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 and commit details [Reference](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/GitProcessor.php)
- (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)

- [**Gaurav Makhecha**](https://github.com/gauravmak) - *Initial work*

See also the list of [contributors](https://github.com/vaibhav/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

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

[](#special-thanks-to)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/86a43a03e9839bb9217c1e45538e4d2537af709177e144bb08615f6d021ed070?d=identicon)[vaibhav140494](/maintainers/vaibhav140494)

---

Top Contributors

[![vaibhav140494](https://avatars.githubusercontent.com/u/54526847?v=4)](https://github.com/vaibhav140494 "vaibhav140494 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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