razonyang/yii2-psr-log

Yii2 PSR Logger Adapter

Installs: 18 214

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2019-08-21 04:43 UTC

This package is auto-updated.

Last update: 2024-10-21 21:22:26 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads LICENSE

Installation

composer require razonyang/yii2-psr-log

Usage

$categoryParam = '__CATEGORY__';

$logger = new \RazonYang\Yii2\Psr\Log\Logger($categoryParam);
$logger->error('hello {name}', [$categoryParam => __METHOD__, 'name' => 'foo']);
// equals to
Yii::error('hello foo', __METHOD__);