Log each line of a multiline log message separatly

resolves #9000
This commit is contained in:
Alexander A. Klimov 2015-04-23 17:44:00 +02:00
parent a976d777b3
commit 39042ab306
1 changed files with 3 additions and 1 deletions

View File

@ -199,7 +199,9 @@ class Logger
$this->writer->log(static::ERROR, $error_message);
}
$this->writer->log($level, $message);
foreach (explode("\n", $message) as $msg) {
$this->writer->log($level, $msg);
}
}
}