{"id":15025065,"url":"https://github.com/freshbitsweb/laravel-log-enhancer","last_synced_at":"2025-04-08T09:03:22.317Z","repository":{"id":43189689,"uuid":"126970369","full_name":"freshbitsweb/laravel-log-enhancer","owner":"freshbitsweb","description":"Make debugging easier by adding more data to your laravel logs (Laravel 5.6+)","archived":false,"fork":false,"pushed_at":"2025-02-26T05:39:46.000Z","size":192,"stargazers_count":345,"open_issues_count":0,"forks_count":33,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-01T08:29:02.869Z","etag":null,"topics":["error-reporting","laravel","laravel-5-package","logging","php","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freshbitsweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-27T10:32:03.000Z","updated_at":"2025-03-10T09:50:56.000Z","dependencies_parsed_at":"2024-05-21T15:30:35.673Z","dependency_job_id":"aaf1b8d8-da72-4965-85ff-72c5801ca398","html_url":"https://github.com/freshbitsweb/laravel-log-enhancer","commit_stats":{"total_commits":54,"total_committers":9,"mean_commits":6.0,"dds":"0.35185185185185186","last_synced_commit":"4a01b8ec6638c7b48b5ecf2d266437b9856f0d0d"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Flaravel-log-enhancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Flaravel-log-enhancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Flaravel-log-enhancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Flaravel-log-enhancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freshbitsweb","download_url":"https://codeload.github.com/freshbitsweb/laravel-log-enhancer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809962,"owners_count":20999816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-reporting","laravel","laravel-5-package","logging","php","php7"],"created_at":"2024-09-24T20:01:28.493Z","updated_at":"2025-04-08T09:03:22.261Z","avatar_url":"https://github.com/freshbitsweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/freshbitsweb/laravel-log-enhancer/v/stable)](https://packagist.org/packages/freshbitsweb/laravel-log-enhancer)\n[![Total Downloads](https://poser.pugx.org/freshbitsweb/laravel-log-enhancer/downloads)](https://packagist.org/packages/freshbitsweb/laravel-log-enhancer)\n[![License](https://poser.pugx.org/freshbitsweb/laravel-log-enhancer/license)](https://packagist.org/packages/freshbitsweb/laravel-log-enhancer)\n[![StyleCI](https://styleci.io/repos/126970369/shield?branch=master)](https://styleci.io/repos/126970369)\n[![Buy us a tree](https://img.shields.io/badge/Buy%20me%20a%20tree-%F0%9F%8C%B3-lightgreen?style=flat-square)](https://plant.treeware.earth/freshbitsweb/laravel-log-enhancer)\n\n# Laravel Log Enhancer (Laravel 5.6 to Laravel 12.x)\nLaravel 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 :)\n\n## Before\n![Before](./images/before.png \"Before\")\n\n## After\n![After](./images/after.png \"After\")\n\n## Requirements\n| PHP    | Laravel | Package |\n|--------|---------|---------|\n| 8.2+   | 12.x    | v2.0.0  |\n| 8.2+   | 11.x    | v1.7.0  |\n| 8.1+   | 10.x    | v1.6.0  |\n| 8.0+   | 9.x     | v1.5.0  |\n| 8.0+   | 9.x     | v1.4.0  |\n| 7.3+   | 8.x     | v1.3.0  |\n| 7.2.5+ | 7.x     | v1.2.0  |\n| \u003c7.2.5 | 6.x     | v1.1.0  |\n| \u003c7.1   | 5.x     | v1.0.*  |\n\n**Notes**:\n- For Laravel 5.5, you may use [Slack Error Notifier](https://github.com/freshbitsweb/slack-error-notifier) package.\n\n## Installation\n\n1) Install the package by running this command in your terminal/cmd:\n```\ncomposer require freshbitsweb/laravel-log-enhancer\n```\n\n2) Add this package's LogEnhancer class to the tap option of your log channel in **config/logging.php**:\n```\n'production_stack' =\u003e [\n    'driver' =\u003e 'stack',\n    'tap' =\u003e [Freshbitsweb\\LaravelLogEnhancer\\LogEnhancer::class],\n    'channels' =\u003e ['daily', 'slack'],\n],\n```\n\nOptionally, you can import config file by running this command in your terminal/cmd:\n```\nphp artisan vendor:publish --tag=laravel-log-enhancer-config\n```\n\nIt has following configuration settings:\n* (bool) log_request_details =\u003e Set to *true* if you wish to log request data. [Reference](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/WebProcessor.php)\n\n* (bool) log_input_data =\u003e Set to *true* if you wish to log user input data\n\n* (bool) log_request_headers =\u003e Set to *true* if you wish to log request headers\n\n* (bool) log_session_data =\u003e Set to *true* if you wish to log session data\n\n* (bool) log_memory_usage =\u003e Set to *true* if you wish to log memory usage [Reference](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryUsageProcessor.php)\n\n* (bool) log_git_data =\u003e Set to *true* if you wish to log git branch name, last commit message, last commit id, staged or (un)staged changes.\n\n* (bool) log_app_details =\u003e Set to *true* if you wish to log application data. It will include Laravel Version, PHP Version, Config Cached and Route Cached details.\n\n* (array) ignore_input_fields =\u003e 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.\n\n## Lumen compatibility\n\nWe do not use Lumen in any of our projects. And this package is not tested with Lumen framework.\nIf 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.\n\n## Authors\n\n* [**Gaurav Makhecha**](https://github.com/gauravmak) - *Initial work*\n\nSee also the list of [contributors](https://github.com/freshbitsweb/laravel-log-enhancer/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Treeware\n\nYou'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.\n\nIt’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 \u003ca href=\"https://www.bbc.co.uk/news/science-environment-48870920\"\u003eplant trees\u003c/a\u003e. If you contribute to our forest you’ll be creating employment for local families and restoring wildlife habitats.\n\nYou can buy trees at for our forest here [offset.earth/treeware](https://plant.treeware.earth/freshbitsweb/laravel-log-enhancer)\n\nRead more about Treeware at [treeware.earth](http://treeware.earth)\n\n## Special Thanks to\n\n* [Laravel](https://laravel.com) Community\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreshbitsweb%2Flaravel-log-enhancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreshbitsweb%2Flaravel-log-enhancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreshbitsweb%2Flaravel-log-enhancer/lists"}