承接 ludovicose/logger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ludovicose/logger

最新稳定版本:2.1.0

Composer 安装命令:

composer require ludovicose/logger

包简介

Log

README 文档

README

Overview

This PHP library enhances logging capabilities by incorporating a unique identifier (UUID) into each log entry, specifically tied to individual requests. The inclusion of UUIDs facilitates efficient log retrieval, allowing users to trace data associated with a particular request from the beginning to the end of the PHP script execution.

Features

Request UUID Logging

The library assigns a UUID to each log entry, offering a convenient means of searching and analyzing logs related to a specific request. This feature proves invaluable for troubleshooting and comprehending the flow of requests within your PHP application.

Middleware Group Logging

If a middleware group is specified in the configuration file, the library logs requests and user responses associated with that group.

Example configuration:

'middleware_groups' => [
    'web',
    'api'
],

HTTP Request Logging

Enabling HTTP request logging captures details about communication between servers, including information about incoming and outgoing HTTP requests.

'enable_http_log' => true

Eloquent Event Logging

The library can log all Eloquent model events, including save, edit, and other related activities. This feature is useful for monitoring changes to your application's data.

'enable_eloquent_log' => true,

Database Query Logging

Enabling database query logging helps keep track of all queries made to the database, aiding in performance optimization and debugging database-related issues.

'enable_query_log' => true,

Installation

  1. Install via Composer:
composer require ludovicose/logger
  1. Configuration:

Copy the configuration file to your project and customize it according to your requirements.

php artisan vendor:publish --provider="Ludovicose\Logger\PackageServiceProvider" --tag="config"
  1. Usage:

Once installed and configured, the logger will automatically start capturing logs based on your specified settings.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-06