diff --git a/json/classic/src/main/java/ch/qos/logback/contrib/json/classic/JsonLayout.java b/json/classic/src/main/java/ch/qos/logback/contrib/json/classic/JsonLayout.java index 75d2c09..f22cc25 100755 --- a/json/classic/src/main/java/ch/qos/logback/contrib/json/classic/JsonLayout.java +++ b/json/classic/src/main/java/ch/qos/logback/contrib/json/classic/JsonLayout.java @@ -13,6 +13,7 @@ package ch.qos.logback.contrib.json.classic; import ch.qos.logback.classic.Level; +import ch.qos.logback.classic.pattern.ThrowableHandlingConverter; import ch.qos.logback.classic.pattern.ThrowableProxyConverter; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.classic.spi.IThrowableProxy; @@ -120,7 +121,7 @@ public class JsonLayout extends JsonLayoutBase { protected boolean includeException; protected boolean includeContextName; - private final ThrowableProxyConverter throwableProxyConverter; + private ThrowableHandlingConverter throwableProxyConverter; public JsonLayout() { super(); @@ -299,4 +300,12 @@ public boolean isIncludeContextName() { public void setIncludeContextName(boolean includeContextName) { this.includeContextName = includeContextName; } + + public ThrowableHandlingConverter getThrowableProxyConverter() { + return throwableProxyConverter; + } + + public void setThrowableProxyConverter(ThrowableHandlingConverter throwableProxyConverter) { + this.throwableProxyConverter = throwableProxyConverter; + } }