razonyang/yii2-psr-log

Yii2 PSR Logger Adapter

Installs: 2 086

Dependents: 1

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2019-08-21 04:43 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__);