Skip to content

Commit

Permalink
Fix LOGBACK-1326
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Jul 26, 2021
1 parent 718c0c4 commit 49c6b67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -15,10 +15,10 @@

import java.nio.charset.Charset;

import ch.qos.logback.core.Appender;
import ch.qos.logback.core.CoreConstants;
import ch.qos.logback.core.Layout;
import ch.qos.logback.core.OutputStreamAppender;
import ch.qos.logback.core.spi.ContextAware;

public class LayoutWrappingEncoder<E> extends EncoderBase<E> {

Expand All @@ -32,7 +32,7 @@ public class LayoutWrappingEncoder<E> extends EncoderBase<E> {
*/
private Charset charset;

Appender<?> parent;
ContextAware parent;
Boolean immediateFlush = null;

public Layout<E> getLayout() {
Expand Down Expand Up @@ -148,7 +148,7 @@ private void appendIfNotNull(StringBuilder sb, String s) {
*
* @param parent
*/
public void setParent(Appender<?> parent) {
public void setParent(ContextAware parent) {
this.parent = parent;
}
}
Expand Up @@ -25,8 +25,9 @@
* @author Ceki Gulcu
*/
public enum AggregationType {
NOT_FOUND, AS_BASIC_PROPERTY, // Long, Integer, Double,..., java primitive, String,
// Duration or FileSize
NOT_FOUND,
AS_BASIC_PROPERTY, // Long, Integer, Double,..., java primitive, String,
// Duration or FileSize
AS_COMPLEX_PROPERTY, // a complex property, a.k.a. attribute, is any attribute
// not covered by basic attributes, i.e.
// object types defined by the user
Expand Down

0 comments on commit 49c6b67

Please sign in to comment.