Skip to content

pahanini/yii2-consolelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

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.