[logback-dev] svn commit: r2150 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Tue Feb 10 14:39:08 CET 2009
Author: ceki
Date: Tue Feb 10 14:39:07 2009
New Revision: 2150
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/UnsynchronizedAppenderBase.java
Log:
The layout setter and getter methods in UnsyncronizedAppenderBase now actually set a
field called layout. This is related to LBCORE-56
See also http://qos.ch/pipermail/logback-dev/2009-February/003660.html
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/UnsynchronizedAppenderBase.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/UnsynchronizedAppenderBase.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/UnsynchronizedAppenderBase.java Tue Feb 10 14:39:07 2009
@@ -27,6 +27,8 @@
abstract public class UnsynchronizedAppenderBase<E> extends ContextAwareBase implements
Appender<E> {
+ protected Layout<E> layout;
+
protected boolean started = false;
// using a ThreadLocal instead of a boolean add 75 nanoseconds per
@@ -142,9 +144,10 @@
}
public Layout<E> getLayout() {
- return null;
+ return layout;
}
public void setLayout(Layout<E> layout) {
+ this.layout = layout;
}
}
More information about the logback-dev
mailing list