processor = new PsrLogMessageProcessor(); } public function log($level, $message, array $context = array()) { if (strpos($message, 'Running command') !== false) { return; } $record = $this->processor->__invoke(array('message' => $message, 'context' => $context)); $this->output .= $record['message'] . PHP_EOL; } }