LaravelPackages.net
Acme Inc.
Toggle sidebar
cavin-kim/laravel-terminal-logger

A Laravel package to log all http requests, queries, and views in the terminal.

15
1
v1.1.7
About cavin-kim/laravel-terminal-logger

cavin-kim/laravel-terminal-logger is a Laravel package for a laravel package to log all http requests, queries, and views in the terminal.. It currently has 1 GitHub stars and 15 downloads on Packagist (latest version v1.1.7). Install it with composer require cavin-kim/laravel-terminal-logger. Discover more Laravel packages by cavin-kim or browse all Laravel packages to compare alternatives.

Last updated

laravel-terminal-logger:


Laravel Terminal Logger

A lightweight Laravel package to log HTTP requests, responses, database queries, and rendered views directly to the terminal or log files.

Features

  • Logs detailed HTTP requests (method, URL, headers, body).
  • Logs HTTP responses (status code, content).
  • Logs all database queries with execution time.
  • Logs rendered views with associated data.
  • Easy installation and configuration.

Installation

  1. Install the package via Composer:

    composer require cavin-kim/laravel-terminal-logger
    
  2. Publish the configuration file:

    php artisan vendor:publish --tag=config
    
  3. Start your Laravel server:

    php artisan serve
    

Configuration

You can customize logging behavior by editing config/terminal-logger.php:

return [
    'log_requests' => true,
    'log_responses' => true,
    'log_queries' => true,
    'log_views' => true,
];

Usage

Once installed, the package will automatically log everything based on your configuration. No additional setup is required.

Support

If you encounter any issues or have suggestions, feel free to open an issue on the GitHub repository.


Comments