Dumps output to console, for console application debugging
Add
"pahanini/yii2-consolelog": "*"
to the require section of your composer.json
file.
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.