jumptwentyfour/laravel-http-logger

A logger middleware for HTTP requests and responses
1,329
Install
composer require jumptwentyfour/laravel-http-logger
Latest Version:1.0.3
PHP:^7.2|^8.0
License:MIT
Last Updated:Jun 22, 2022
Links: GitHub  ·  Packagist
Maintainer: dannewns

Laravel HTTP Logger

Installation

You can install the package via composer:

composer require jumptwentyfour/laravel-http-logger

Optionally you can publish the config file with:

php artisan vendor:publish --provider="JumpTwentyFour\LaravelHttpLogger\ServiceProvider" --tag="config"

Usage

This packages provides a middleware which can be added as a global middleware or as a single route.

// In `app/Http/Kernel.php`

protected $middleware = [
    // ...
    
    \JumpTwentyFour\LaravelHttpLogger\Middleware\HttpLogger::class
];
// In a routes file

Route::post(...)->middleware(\JumpTwentyFour\LaravelHttpLogger\Middleware\HttpLogger::class);

Related Packages

spatie/laravel-http-logger

A Laravel package to log HTTP requests

5,141,911 674
mamitech/laravel-http-logger

Mamitech Laravel HTTP Logger

19,852 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442