/** * Returns the log context for a console application * @return array */ public function getConsoleContext(\yii\console\Application $app) { return [['title' => 'Params', 'value' => implode(' ', $app->getRequest()->getParams()), 'short' => true]]; }