marko/log
最新稳定版本:0.5.0
Composer 安装命令:
composer require marko/log
包简介
PSR-3 compatible logging interfaces and formatters for Marko Framework
README 文档
README
Logging contracts and formatters -- define how your application logs messages without coupling to a storage backend.
Installation
composer require marko/log
Note: You also need an implementation package such as marko/log-file.
Quick Example
use Marko\Log\Contracts\LoggerInterface; class OrderService { public function __construct( private LoggerInterface $logger, ) {} public function placeOrder(int $orderId): void { $this->logger->info('Order placed', ['order_id' => $orderId]); } }
Documentation
Full usage, API reference, and examples: marko/log
统计信息
- 总下载量: 100
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24