/** * Logs with an arbitrary level. * * @param mixed $level * @param string $message * @param array $context * @return null * @throws Exception */ public function log($level, $message, array $context = array()) { $this->throwExceptionIfNotAllMandatoryPropertiesAreSet(); $this->output->writeLine($level . ': ' . $message); if (!empty($context)) { $indention = ' '; $this->output->writeLine($indention . 'context:'); $this->output->writeLines($context, $indention . $indention); } }