承接 yiisoft/yii2-psr-log-source 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

yiisoft/yii2-psr-log-source

最新稳定版本:v1.0.0

Composer 安装命令:

composer require yiisoft/yii2-psr-log-source

包简介

A PSR LoggerInterface implementation that routes to the Yii logger

README 文档

README

This simple library implements a PSR compatible logger that routes all messages to a Yii Logger. Use this if you have a library that needs such a logger and you want to forward the messages to your existing Logger.

Logger adapter

The Logger adapter class takes a Yii Logger object and implements the LoggerInterface.

DynamicLogger

Since Yii2 uses mutability a lot, the Logger adapter might hold a reference to an old Yii Logger. To work properly with the Service Locator pattern we must use it on every call. DynamicLogger does this while internally using the Logger and recreating it when needed.

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 9
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-08-17