[logback-dev] svn commit: r1907 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/status
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Wed Oct 29 19:12:00 CET 2008
Author: ceki
Date: Wed Oct 29 19:12:00 2008
New Revision: 1907
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/status/OnConsoleStatusListener.java
Log:
System.out.print is more appropriate as StatusPrinter.buildStr already appends a line separator
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/status/OnConsoleStatusListener.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/status/OnConsoleStatusListener.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/status/OnConsoleStatusListener.java Wed Oct 29 19:12:00 2008
@@ -1,12 +1,28 @@
+/**
+ * Logback: the generic, reliable, fast and flexible logging framework.
+ *
+ * Copyright (C) 2000-2008, QOS.ch
+ *
+ * This library is free software, you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation.
+ */
package ch.qos.logback.core.status;
import ch.qos.logback.core.util.StatusPrinter;
+/**
+ * Print all new incoming status messages on the console.
+ *
+ * @author Ceki Gülcü
+ *
+ */
public class OnConsoleStatusListener implements StatusListener {
+
public void addStatusEvent(Status status) {
StringBuilder sb = new StringBuilder();
StatusPrinter.buildStr(sb, "", status);
- System.out.println(sb);
+ System.out.print(sb);
}
}
More information about the logback-dev
mailing list