Merge pull request #99 from dwijnand/prereset

Add a RESET at the front of the appendLog line
This commit is contained in:
Dale Wijnand 2017-07-17 10:55:39 +01:00 committed by GitHub
commit 81277cbf62
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class ConsoleAppender private[ConsoleAppender] (
private def appendLog(labelColor: String, label: String, messageColor: String, message: String): Unit =
out.lockObject.synchronized {
message.lines.foreach { line =>
val labeledLine = s"[${formatted(labelColor, label)}] ${formatted(messageColor, line)}"
val labeledLine = s"$RESET[${formatted(labelColor, label)}] ${formatted(messageColor, line)}"
writeLine(labeledLine)
}
}