private RollingFileAppender createRollingFileAppender(String logFilePath, String filePattern, String appenderName, Configuration configuration) { return RollingFileAppender.newBuilder() .withFileName(logFilePath) .withFilePattern(logFilePath + filePattern) .withAppend(true) .withName(appenderName).withBufferedIo(true) .withPolicy(TimeBasedTriggeringPolicy.newBuilder() .withInterval(getInteger(MULE_LOG_DEFAULT_POLICY_INTERVAL, 1)) .withModulate(true) .build()) .withStrategy(DefaultRolloverStrategy.newBuilder() .withMax(getProperty(MULE_LOG_DEFAULT_STRATEGY_MAX, "30")) .withMin(getProperty(MULE_LOG_DEFAULT_STRATEGY_MIN, "1")) .withCompressionLevelStr(String.valueOf(NO_COMPRESSION)) .withStopCustomActionsOnError(true) .withConfig(configuration) .build()) .withLayout(createLayout(configuration)) .setConfiguration(configuration) .build(); }
strategy = DefaultRolloverStrategy.newBuilder() .withCompressionLevelStr(String.valueOf(Deflater.DEFAULT_COMPRESSION)) .withConfig(getConfiguration())
strategy = DefaultRolloverStrategy.newBuilder() .withCompressionLevelStr(String.valueOf(Deflater.DEFAULT_COMPRESSION)) .withConfig(getConfiguration())
final boolean stopCustomActionsOnError, @PluginConfiguration final Configuration config) { return DefaultRolloverStrategy.newBuilder() .withMin(min) .withMax(max)