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
其他信息
- 授权协议: GNU
- 更新时间: 2022-01-21