New

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

ageekdev/vapor-http-logger

This package can log incoming requests to the cloud watch for laravel vapor application.
24,678 1
Install
composer require ageekdev/vapor-http-logger
Latest Version:v2.0.0
PHP:^8.2
Laravel:12 · 13
Older releases:9 · 10 · 11
License:MIT
Last Updated:Mar 21, 2026
Links: GitHub  ·  Packagist
Maintainer: tintnaingwin

Vapor HTTP Logger

Latest Version on Packagist Laravel 12.x Laravel 13.x GitHub Tests Action Status Total Downloads

Log HTTP requests in Laravel Vapor applications

Installation

You can install the package via composer:

composer require ageekdev/vapor-http-logger

You can publish the config file with:

php artisan vendor:publish --provider="AgeekDev\HttpLogger\HttpLoggerServiceProvider" --tag="config"

This is the contents of the published config file:

return [
    /*
     *  Automatic registration of middleware will only happen if this setting is `true`
     */
    'enabled' => env('HTTP_LOGGER_ENABLED', true),

    /*
     * The log profile which determines whether a request should be logged.
     * It should implement `LogProfile`.
     */
    'log_profile' => \AgeekDev\HttpLogger\LogNonGetRequests::class,

    /*
     * The log writer used to write the request to a log.
     * It should implement `LogWriter`.
     */
    'log_writer' => \AgeekDev\HttpLogger\DefaultLogWriter::class,

    /*
     * The log channel used to write the request.
     */
    'log_channel' => env('LOG_CHANNEL', 'stderr'),

    /*
     * The log level used to log the request.
     */
    'log_level' => 'info',

    /*
     * List of request methods that will be logged.
     */
    'request_methods' => ['post', 'put', 'patch', 'delete'],

    /*
     * Filter out body fields which will never be logged.
     */
    'except' => [
        'password',
        'password_confirmation',
    ],

    /*
     * List of headers that will be sanitized. For example Authorization, Cookie, Set-Cookie...
     */
    'sanitize_headers' => [],
];

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

This package contains code copied from Log HTTP requests

License

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

Related Packages

laravel/vapor-core

The kernel and invocation handlers for Laravel Vapor

15,204,403 414
laravel/vapor-cli

The Laravel Vapor CLI

13,442,786 317
thebytelab/vapor-multi-region-deploy

An artisan command to assist deploying your Laravel Vapor app to multiple AWS re...

3,149 16
cndrsdrmn/http-logger

Logging http request and response

539 0
spatie/laravel-queued-db-cleanup

Safely delete large numbers of records

456,744 81

Version History

Version Released PHP Laravel License
v2.0.0 ^8.2 ^12.0|^13.0 MIT
v1.2.0 ^8.1 ^9.0|^10.0|^11.0|^12.0 MIT
v1.1.0 ^8.1 ^9.0|^10.0|^11.0 MIT
v1.0.0 ^8.1|^8.2 ^9.0|^10.0 MIT