diff --git a/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyConfiguration.java b/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyConfiguration.java index c867669..5988b6e 100644 --- a/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyConfiguration.java +++ b/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyConfiguration.java @@ -103,7 +103,7 @@ else if (p6spy.isMultiline()) { System.setProperty("p6spy.config.appender", "com.p6spy.engine.spy.appender.FileLogger"); break; case CUSTOM: - System.setProperty("p6spy.config.appender", p6spy.getCustomAppenderClass().getName()); + System.setProperty("p6spy.config.appender", p6spy.getCustomAppenderClass()); break; } } diff --git a/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyProperties.java b/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyProperties.java index 907e07e..66c8bc1 100644 --- a/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyProperties.java +++ b/datasource-decorator-spring-boot-autoconfigure/src/main/java/com/github/gavlyukovskiy/boot/jdbc/decorator/p6spy/P6SpyProperties.java @@ -64,7 +64,7 @@ public class P6SpyProperties { * Class file to use (only with logging=custom). * The class must implement {@link com.p6spy.engine.spy.appender.FormattedLogger} */ - private Class customAppenderClass; + private String customAppenderClass; /** * Log filtering related properties.