2017 © Pedro Peláez
 

library laravel-log-enhancer

Adds more data to logs for easy debugging.

image

awesome-people/laravel-log-enhancer

Adds more data to logs for easy debugging.

  • Monday, July 16, 2018
  • by mintunitish
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Latest Stable Version Total Downloads License Monthly Downloads Build Status Codacy Badge, (*1)

Log Enhancer (Laravel 5.6)

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., (*2)

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 offers., (*3)

Requirements

  • PHP 7.1.3+
  • Laravel 5.6

Installation

1) Install the package by running this command in your terminal/cmd:, (*4)

composer require mintunitish/laravel-log-enhancer

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

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

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

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

It has following configuration settings: (bool) log_request_details => Set to *true if you wish to log request data. (Reference), (*7)

  • (bool) log_input_data => Set to true if you wish to log user input data, (*8)

  • (bool) log_request_headers => Set to true if you wish to log request headers, (*9)

  • (bool) log_session_data => Set to true if you wish to log session data, (*10)

  • (bool) log_memory_usage => Set to true if you wish to log memory usage. (Reference), (*11)

  • (bool) log_git_data => Set to true if you wish to log git branch and commit details. (Reference), (*12)

  • (array) ignore_input_fields => 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., (*13)

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details, (*14)

Special Thanks to

The Versions

16/07 2018

dev-master

9999999-dev

Adds more data to logs for easy debugging.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nitish Kumar

15/07 2018

1.1.1

1.1.1.0

Adds more data to logs for easy debugging.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nitish Kumar

13/07 2018

1.1.0

1.1.0.0

Adds more data to logs for easy debugging.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nitish Kumar

13/07 2018

1.0.2

1.0.2.0

Adds more data to logs for easy debugging.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nitish Kumar

13/07 2018

1.0.0

1.0.0.0

Adds more data to logs for easy debugging.

  Sources   Download

MIT

The Requires

 

by Nitish Kumar