New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

magentron/laravel-api-logger

Laravel API logger to log responses and requests to file.
1,898 1
Install
composer require magentron/laravel-api-logger:0.2.0-beta
Latest Version:0.2.0-beta
Laravel:5 – 8
License:GPL-3.0-or-later
Last Updated:Feb 17, 2022
Links: GitHub  ·  Packagist
Maintainer: Magentron

Laravel API Logger

Laravel 6.10.12+

Laravel component to log API requests and responses to file.

Requirements

Perhaps it works with lesser versions as well, but this is untested.

  • PHP 5.6 or above
  • Laravel 5.4 or above

Installation

Add package via composer:

composer require magentron/laravel-api-logger

For Laravel version < 5.5, edit config/app.php, add the following to the providers array:

Magentron\ApiLogger\Providers\ServiceProvider::class,

Usage

TODO

TODO

  • Use Monolog or other log writers to support other destinations than file system
  • Restrict logging to specific HTTP methods and/or URI's
  • Specify HTTP status codes to log
  • Write tests and gain 100% code coverage

Author

Jeroen Derks, a.k.a Magentron

Inspiration

This project was inspired by the following projects:

License

laravel-api-logger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

laravel-api-logger is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with laravel-api-logger. If not, see http://www.gnu.org/licenses/.

Related Packages

railken/lara-eye
38,923 38
api
juampi92/api-resources

Manage your resources maintaining API versioning

934,502 111
tailflow/laravel-orion

Orion for Laravel allows you to build a fully featured REST API based on your El...

803,682 1,592
unlu/laravel-api-query-builder

Laravel API Query Builder Package.

720,455 329
juampi92/phecks

A package to run custom PHP checks

411,123 4

Version History

Pre-releases (4)
Version Released Laravel License
0.2.0-beta ^5.4|^6.20.14|^7|^8 GPL-3.0-or-later
0.1.2-alpha ^5.4 GPL-3.0-or-later
0.1.1-alpha ^5.4 GPL-3.0-or-later
0.1.0-alpha ^5.4 GPL-3.0-or-later