Skip to content

Commit

Permalink
Reverted using Class reference for custom-appender-class to not bre…
Browse files Browse the repository at this point in the history
…ak properties binding in certain cases
  • Loading branch information
gavlyukovskiy committed Mar 14, 2021
1 parent 9970845 commit 502cd58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<? extends FormattedLogger> customAppenderClass;
private String customAppenderClass;

/**
* Log filtering related properties.
Expand Down

0 comments on commit 502cd58

Please sign in to comment.