Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from jeffjcrowe/master
Browse files Browse the repository at this point in the history
Allow custom ThrowableHandlingConverter in JsonLayout
  • Loading branch information
tony19 committed Apr 6, 2016
2 parents f03b702 + 90cfcd9 commit 8c265c9
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -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;
Expand Down Expand Up @@ -120,7 +121,7 @@ public class JsonLayout extends JsonLayoutBase<ILoggingEvent> {
protected boolean includeException;
protected boolean includeContextName;

private final ThrowableProxyConverter throwableProxyConverter;
private ThrowableHandlingConverter throwableProxyConverter;

public JsonLayout() {
super();
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 8c265c9

Please sign in to comment.