flipboxfactory/craft-psr3

Craft CMS 的 PSR-3 记录器

2.0.0 2023-01-21 16:28 UTC

This package is auto-updated.

Last update: 2024-09-21 20:38:40 UTC


README

Join the chat at https://gitter.im/flipboxfactory/craft-psr3 Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

此包通过 Craft CMS 提供简单的 PSR-3 记录机制。

安装

要安装,请使用 composer

composer require flipboxfactory/craft-psr3

测试

$ ./vendor/bin/phpunit

用法

将其定义为插件中的组件

'components' => [
    'psr3logger' => [
        'class' => flipbox\craft\psr3\Logger::class
     ]
]

或通过 composer 中的 'extra' 定义

"components": {
  "psr3logger": "flipbox\\craft\\psr3\\Logger"
}

贡献

请参阅 CONTRIBUTING 以获取详细信息。

致谢

许可协议

MIT 许可协议 (MIT)。请参阅 许可文件 以获取更多信息。