pahanini/yii2-consolelog

Dumps log to console

Installs: 183 538

Dependents: 1

Suggesters: 0

Security: 0

Stars: 19

Watchers: 2

Forks: 11

Open Issues: 1

Type:yii2-extension

v3.0.1 2018-10-03 08:13 UTC

This package is auto-updated.

Last update: 2024-11-12 06:09:18 UTC


README

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.