Laravel Request Logger

screenshot of Laravel Request Logger

HTTP request logger middleware for Laravel

Overview

The Laravel Request Logger is an essential tool for developers using the Laravel framework. This package, inspired by Morgan’s Node HTTP request logger, allows for the seamless logging of both requests and responses within Laravel applications. With its easy integration and customizable features, it provides enhanced visibility into application performance and user interactions, making debugging a much simpler process.

Installing the Laravel Request Logger is straightforward, requiring just a few commands in your terminal to add it to your project. Once integrated, developers can tailor the logging capabilities to fit their specific needs, ensuring they capture the right data for their applications.

Features

  • Easy Installation: Install via Composer using a simple command, making setup quick and hassle-free.
  • Customizable Configuration: Modify options in the config/request-logger.php file to suit project requirements, such as enabling/disabling the logger.
  • Adaptive Logging Level: Set the logging level to capture different types of events like info, warning, or error, allowing for precise tracking.
  • Flexible Log Formats: Choose from various log record formats that can be easily customized for clarity and relevance.
  • Client IP Logging: Capture the client's IP address with each request, providing essential data for security and analytics.
  • Full URL Tracking: The logger can record the full URL of requests, including query strings, which is beneficial for debugging specific issues.
  • Root URL Access: Easily retrieve the application's root URL, aiding in the formulation of logging outputs.
  • Structured Path Information: Log both the current path and its encoded version, helping developers to monitor route usage effectively.