diff --git a/src/main/com/jdbernard/slf4j/LoggerOutputStream.java b/src/main/com/jdbernard/slf4j/LoggerOutputStream.java index 83e0750..c00abe4 100644 --- a/src/main/com/jdbernard/slf4j/LoggerOutputStream.java +++ b/src/main/com/jdbernard/slf4j/LoggerOutputStream.java @@ -68,7 +68,7 @@ public class LoggerOutputStream extends OutputStream { final byte[] messageBytes = new byte[count]; System.arraycopy(buffer, 0, messageBytes, 0, count); - final String message = new String(messageBytes); + final String message = new String(messageBytes).trim(); synchronized(logger) { switch (level) { default: