deadpool2k/quicklogphp
最新稳定版本:v0.1.0
Composer 安装命令:
composer require deadpool2k/quicklogphp
包简介
A simple, fast PHP logging library that logs datetime, IP, user-agent, and message details.
README 文档
README
A lightweight PHP logger that records datetime, IP address, user agent, and message details — all in a single line.
[datetime]:[ip]:[useragent]:[level]:message
Installation
composer require deadpool2k/quicklogphp
Usage
use QuickLogPHP\QuickLog; $log = new QuickLog(); $log->info("User logged in", ["username" => "john_doe"]); $log->error("Database connection failed", ["db_host" => "localhost"]);
Example Output
[2025-10-31 18:10:45]:[192.168.1.10]:[Mozilla/5.0]:[INFO]:User logged in | {"username":"john_doe"}
[2025-10-31 18:11:15]:[192.168.1.10]:[Mozilla/5.0]:[ERROR]:Database connection failed | {"db_host":"localhost"}
🧾 License
MIT
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-01