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

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

danstuchbury/laravel-log-enhancer
=================================

Enhancer for default Laravel Monolog

v1.0.14(6y ago)013MITPHPPHP ^7.1.3

Since Aug 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dstuchbury/laravel-log-enhancer)[ Packagist](https://packagist.org/packages/danstuchbury/laravel-log-enhancer)[ RSS](/packages/danstuchbury-laravel-log-enhancer/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

[![Build Status](https://camo.githubusercontent.com/6676d9ecf81a0d6995497a7e8529f3d3c24c54609f2c1d261c703f89c44fa09a/68747470733a2f2f7472617669732d63692e6f72672f647374756368627572792f6c61726176656c2d6c6f672d656e68616e6365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dstuchbury/laravel-log-enhancer)[![Latest Stable Version](https://camo.githubusercontent.com/9fbb1b41f24943e0dec4c7b7414c35133fee035754af9ad82c796c80f9461c27/68747470733a2f2f706f7365722e707567782e6f72672f64616e7374756368627572792f6c61726176656c2d6c6f672d656e68616e6365722f762f737461626c65)](https://packagist.org/packages/danstuchbury/laravel-log-enhancer) [![Total Downloads](https://camo.githubusercontent.com/cdeb9d803bb9662b3e4fbe9683abdfb2effb57a24cf59193590e073b843339bb/68747470733a2f2f706f7365722e707567782e6f72672f64616e7374756368627572792f6c61726176656c2d6c6f672d656e68616e6365722f646f776e6c6f616473)](https://packagist.org/packages/danstuchbury/laravel-log-enhancer) [![Latest Unstable Version](https://camo.githubusercontent.com/600dd98e6bf1b32cee25a08e0687bceed4cd2a685f455bf02a0af85dabc80d13/68747470733a2f2f706f7365722e707567782e6f72672f64616e7374756368627572792f6c61726176656c2d6c6f672d656e68616e6365722f762f756e737461626c65)](https://packagist.org/packages/danstuchbury/laravel-log-enhancer) [![License](https://camo.githubusercontent.com/40ee35a39325f1d4907e00bc0eae1dcaaa687a781a09fdb435743929fd7fd299/68747470733a2f2f706f7365722e707567782e6f72672f64616e7374756368627572792f6c61726176656c2d6c6f672d656e68616e6365722f6c6963656e7365)](https://packagist.org/packages/danstuchbury/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/freshbitsweb/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 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.

Authors
-------

[](#authors)

- [**Gaurav Makhecha**](https://github.com/gauravmak) - *Initial work*
- [**Dan Stuchbury**](https://githib.com/dstuchbury) - *Experimenting* - I take no credit for the work, sourced from ()

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

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

[](#special-thanks-to)

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

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

12

Last Release

2515d ago

PHP version history (2 changes)v1.0.3PHP &gt;=7.1.3

v1.0.4PHP ^7.1.3

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

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

The Illuminate Log package.

6225.0M603](/packages/illuminate-log)[mateusjunges/laravel-kafka

A kafka driver for laravel

7243.4M20](/packages/mateusjunges-laravel-kafka)[grkamil/laravel-telegram-logging

Send logs to Telegram chat via Telegram bot

161493.0k](/packages/grkamil-laravel-telegram-logging)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.3M](/packages/honeybadger-io-honeybadger-laravel)[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.

45344.0k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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