定制 yarkan/log-debugger 二次开发

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

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

yarkan/log-debugger

Composer 安装命令:

composer require yarkan/log-debugger

包简介

A single local debug

README 文档

README

1. Configuration:

  • Environment: Define the parameters
    • Name: name of file
    • Route: route of write the file
    • Route Level: level of directories to need to find a project dir
LDG_NAME=Waring
LDG_ROUTE=/var/log
LDG_ROUTE_LEVEL=5

2. Usage

  • Line: Single line, values: String|Numeric
LDG\Write::local()->line('Test', 12);
  • Json: Convert to json structure, values: Object|Array
LDG\Write::local()->json([12, 'Test'], new Test());
  • Implement: Show class detailed, values: Object
LDG\Write::local()->impl(new Test());
  • Error: Show error message, values: \Throwable
LDG\Write::local()->error($exception);
  • Exception: Show exception trace, values: \Throwable
LDG\Write::local()->exception($exception);
  • Print: Show any structure more beautifully, values: String|Numeric|Array|Object
LDG\Write::local()->print('Test', 123, [123, 'Test'], new Test());
  • Dump: Show any structure more detailed, values: String|Numeric|Array|Object
LDG\Write::local()->dump('Test', 123, [123, 'Test'], new Test());

3. Customized

  • Name: customize a new name for the file
LDG\Write::local()->name('New name')->line('Test');
  • Memory: expand memory to use
LDG\Write::local()->memory('128M')->line('Test');
  • Trace: add back trace
LDG\Write::local()->trace();
LDG\Write::local()->showTrace()->line('Test');
  • Clear: clear all file in the directory
LDG\Write::local()->clear()->line('Test');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GNU
  • 更新时间: 2022-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固