'app-console', 'basePath' => dirname ( __DIR__ ), 'bootstrap' => [ 'log' ], 'controllerNamespace' => 'console\controllers', 'components' => [ 'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => [ 'error', 'warning' ] ] ] ] ], 'params' => $params ];