Fixed compilation error after merge with master
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f8b86f51 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f8b86f51 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f8b86f51 Branch: refs/heads/LOG4J2-1349-gcfree-threadcontext Commit: f8b86f5191ed7756f83fe8f3115d2eb5c2365ae7 Parents: d74f4b1 Author: Aleksey Zvolinsky <[email protected]> Authored: Mon Aug 1 00:47:35 2016 +0300 Committer: Gary Gregory <[email protected]> Committed: Mon Aug 29 10:20:54 2016 -0700 ---------------------------------------------------------------------- .../logging/log4j/core/appender/routing/IdlePurgePolicy.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f8b86f51/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/routing/IdlePurgePolicy.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/routing/IdlePurgePolicy.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/routing/IdlePurgePolicy.java index 5a5ee6a..9fee717 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/routing/IdlePurgePolicy.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/routing/IdlePurgePolicy.java @@ -22,6 +22,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; +import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.core.AbstractLifeCycle; import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.config.Configuration; @@ -31,6 +32,7 @@ import org.apache.logging.log4j.core.config.plugins.Plugin; import org.apache.logging.log4j.core.config.plugins.PluginAttribute; import org.apache.logging.log4j.core.config.plugins.PluginConfiguration; import org.apache.logging.log4j.core.config.plugins.PluginFactory; +import org.apache.logging.log4j.status.StatusLogger; /** * Policy is purging appenders that were not in use specified time in minutes @@ -39,6 +41,7 @@ import org.apache.logging.log4j.core.config.plugins.PluginFactory; @Scheduled public class IdlePurgePolicy extends AbstractLifeCycle implements PurgePolicy, Runnable { + private static final Logger LOGGER = StatusLogger.getLogger(); private final long timeToLive; private final long checkInterval; private final ConcurrentMap<String, Long> appendersUsage = new ConcurrentHashMap<>(); @@ -46,7 +49,7 @@ public class IdlePurgePolicy extends AbstractLifeCycle implements PurgePolicy, R private final ConfigurationScheduler scheduler; private volatile ScheduledFuture<?> future = null; - public IdlePurgePolicy(long timeToLive, long checkInterval, final ConfigurationScheduler scheduler) { + public IdlePurgePolicy(final long timeToLive, final long checkInterval, final ConfigurationScheduler scheduler) { this.timeToLive = timeToLive; this.checkInterval = checkInterval; this.scheduler = scheduler;
