[logback-dev] svn commit: r1760 - in logback/trunk: logback-core/src/main/java/ch/qos/logback/core/util logback-examples/src/main/java/chapter3
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Sat Aug 16 19:33:13 CEST 2008
Author: ceki
Date: Sat Aug 16 19:33:13 2008
New Revision: 1760
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/StatusPrinter.java
logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java
Log:
- very minor changes
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/StatusPrinter.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/StatusPrinter.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/StatusPrinter.java Sat Aug 16 19:33:13 2008
@@ -92,7 +92,7 @@
String dateStr = simpleDateFormat.format(date);
sb.append(dateStr).append(" ");
}
- sb.append(prefix + s).append(Layout.LINE_SEP);
+ sb.append(prefix).append(s).append(Layout.LINE_SEP);
if (s.getThrowable() != null) {
appendThrowable(sb, s.getThrowable());
Modified: logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java
==============================================================================
--- logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java (original)
+++ logback/trunk/logback-examples/src/main/java/chapter3/MyApp2.java Sat Aug 16 19:33:13 2008
@@ -20,12 +20,11 @@
final static Logger logger = LoggerFactory.getLogger(MyApp2.class);
public static void main(String[] args) {
- logger.info("Entering application.");
-
// print logback's internal status
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
StatusPrinter.print(lc);
+ logger.info("Entering application.");
Foo foo = new Foo();
foo.doIt();
logger.info("Exiting application.");
More information about the logback-dev
mailing list