Console log for yii2
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ConsoleTarget.php
README.md
composer.json

README.md

Console logger

Dumps output to console, for console application debugging

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

Add

"pahanini/yii2-consolelog": "*"

to the require section of your composer.json file.

Usage

return [
	'id' => 'app-console',
	'bootstrap' => ['log'],
	'components' => [
		'log' => [
			'targets' => [
				[
					'class' => 'pahanini\log\ConsoleTarget',
					'levels' => ['error', 'warning', 'trace'],
				]
			],
		],
	],
	'params' => $params,
];

You also can customize color scheme using color property.