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

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

omkar1912/laravel-log-enhancer
==============================

The Laravel Frame work

00PHP

Since Oct 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/omkar1912/laravel-log-enhancer)[ Packagist](https://packagist.org/packages/omkar1912/laravel-log-enhancer)[ RSS](/packages/omkar1912-laravel-log-enhancer/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/4d7523c9e3e261f0c0a830e8a88407456582c45dc3447f2b32d431bb09a179dd/68747470733a2f2f706f7365722e707567782e6f72672f6672657368626974737765622f6c61726176656c2d6c6f672d656e68616e6365722f762f737461626c65)](https://packagist.org/packages/freshbitsweb/laravel-log-enhancer)[![Total Downloads](https://camo.githubusercontent.com/0b1cdd964d7867f5b7cad0c7e0863b48e32d297d5bcaa0b2110a155a0152cc04/68747470733a2f2f706f7365722e707567782e6f72672f6672657368626974737765622f6c61726176656c2d6c6f672d656e68616e6365722f646f776e6c6f616473)](https://packagist.org/packages/freshbitsweb/laravel-log-enhancer)[![License](https://camo.githubusercontent.com/be26d19d40b1c89674ac40aaf88f1256130f53d7fea8551ec1d1103195b8488b/68747470733a2f2f706f7365722e707567782e6f72672f6672657368626974737765622f6c61726176656c2d6c6f672d656e68616e6365722f6c6963656e7365)](https://packagist.org/packages/freshbitsweb/laravel-log-enhancer)[![StyleCI](https://camo.githubusercontent.com/629b25c498be3fde46a4852c3f0e72e2c865b5c469c758cd35ec0bf586913446/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132363937303336392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/126970369)[![Build Status](https://camo.githubusercontent.com/f5d7e76d2fce9a19fe26af01325d14e2f40c3b9a4531b370e647aea7bf0f04df/68747470733a2f2f7472617669732d63692e6f72672f6672657368626974737765622f6c61726176656c2d6c6f672d656e68616e6365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/freshbitsweb/laravel-log-enhancer)[![Buy us a tree](https://camo.githubusercontent.com/dd118003b5a1a1654809a5c3915a5f9e213a16eeeb09781e1c5e0fe4c336f46b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532306d6525323061253230747265652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666c61742d737175617265)](https://plant.treeware.earth/freshbitsweb/laravel-log-enhancer)

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

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

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

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

[](#requirements)

PHPLaravelPackage7.3+8.xv1.3.07.2.5+7.xv1.2.0&lt;7.2.56.xv1.1.0&lt;7.15.xv1.0.\***Notes**:

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

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

[](#installation)

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

```
composer require freshbitsweb/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' => [Freshbitsweb\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.

Lumen compatibility
-------------------

[](#lumen-compatibility)

We do not use Lumen in any of our projects. And this package is not tested with Lumen framework. If you are [willing](https://github.com/freshbitsweb/laravel-log-enhancer/issues/15) [to](https://github.com/freshbitsweb/laravel-log-enhancer/issues/16) use this package with Lumen, please help us by testing and making a PR to make it work. Thanks.

Authors
-------

[](#authors)

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

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

You can buy trees at for our forest here [offset.earth/treeware](https://plant.treeware.earth/freshbitsweb/laravel-log-enhancer)

Read more about Treeware at [treeware.earth](http://treeware.earth)

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

[](#special-thanks-to)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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://avatars.githubusercontent.com/u/69311905?v=4)[omkar1912](/maintainers/omkar1912)[@omkar1912](https://github.com/omkar1912)

---

Top Contributors

[![omkar1912](https://avatars.githubusercontent.com/u/69311905?v=4)](https://github.com/omkar1912 "omkar1912 (3 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/omkar1912-laravel-log-enhancer/health.svg)](https://phpackages.com/packages/omkar1912-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)
