Updated strategy name to existing strategy `DirectFileRolloverStrategy`
Instead of using a hard coded name the class name of the interface was used which
a) Increases visibility where the interface is referenced
b) Prevents that the message needs to be adjusted when the interface name changes
@@ -138,7 +138,7 @@ public final class RollingFileAppender extends AbstractOutputStreamAppender<Roll
.build();
}
} else if (fileName == null && !(strategy instanceof DirectFileRolloverStrategy)) {
- LOGGER.error("RollingFileAppender '{}': When no file name is provided a DirectFilenameRolloverStrategy must be configured", getName());
+ LOGGER.error("RollingFileAppender '{}': When no file name is provided a {} must be configured", getName(), DirectFileRolloverStrategy.class.getSimpleName());
return null;
}
