/** * Write a message with extra record params * * @param string $message * @param array $record */ protected function write($message, array $record = array()) { $record = array_merge($this->defautlRecord, $record); $record['msg'] = $message; $this->output->writeln($this->formatter->format($record)); }