Skip to content

Commit

Permalink
Log each line of a multiline log message separatly
Browse files Browse the repository at this point in the history
resolves #9000
  • Loading branch information
Al2Klimov committed Apr 23, 2015
1 parent a976d77 commit 39042ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Icinga/Application/Logger.php
Expand Up @@ -199,7 +199,9 @@ public function log($level, $message)
$this->writer->log(static::ERROR, $error_message);
}

$this->writer->log($level, $message);
foreach (explode("\n", $message) as $msg) {
$this->writer->log($level, $msg);
}
}
}

Expand Down

0 comments on commit 39042ab

Please sign in to comment.