cavin-kim/laravel-terminal-logger 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cavin-kim/laravel-terminal-logger

最新稳定版本:v1.1.7

Composer 安装命令:

composer require cavin-kim/laravel-terminal-logger

包简介

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

README 文档

README

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.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-29