定制 kenzal/log-to-dump 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kenzal/log-to-dump

最新稳定版本:v1.0.0

Composer 安装命令:

composer require kenzal/log-to-dump

包简介

Adds a log channel to Laravel that sends log messages to the dump function.

README 文档

README

A micro-package for Laravel that allows you to log messages to the dump channel, which sends all log messages to the dump() function. This is useful for debugging purposes, especially when you want to see the output of your logs in the browser or console without having to set up a dedicated logging channel.

Additionally, it may come in handy if you intercept dumped messages (via browser extension, dump server, or a utility such as Laravel Herd).

Installation

You can install the package via composer (primarily intended for development purposes):

composer require --dev kenzal/log-to-dump

Usage

Simply set your default log channel to dump or a stack that includes dump;

You may also specify the dump channel in your config/logging.php file:

'channels' => [ // ... 'dump' => [ 'driver' => 'dump', ], ],

Options

You can configure the dump channel in your config/logging.php file. The following options are available:

  • level: The minimum log level to log. Defaults to debug.
  • formatter: A monolog formatter to use.
  • processors: An array of monolog processors to use.

Testing

composer test

Contribution

If you want to contribute code to this package, please open an issue first. To avoid unnecessary effort for you, it is very beneficial to first discuss the idea, the functionality and its API.

Changelog

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

Security Vulnerabilities

If you discover any security related issues, please submit them through the issue tracker.

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固