mamitech/laravel-http-logger

Mamitech Laravel HTTP Logger

v2.1 2023-11-16 09:15 UTC

This package is auto-updated.

Last update: 2024-05-16 10:19:42 UTC


README

Log all your HTTP request to ECS (Elastic Common Sheme) compliance format data into your selected logging channel.

Installation

Add mamitech/laravel-http-logger to composer.json

Register the service provider in providers array in config/app.php

'providers' => [
    // ...
    Mamitech\LaravelHTTPLogger::class,
    // ...
],

Publish the config

todo

Set logging channel in config to where you want the HTTP log being sent to.

todo

Usage

Once you add the service provider and middleware to your Laravel application, all HTTP request should be logged to logging channel of your choice.

Test

Run

./vendor/bin/phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.