|
|
|
@ -19,9 +19,9 @@ public abstract class AbstractBatchLogger {
|
|
|
|
|
private Map<String, Object> concurrentHashMap = new ConcurrentHashMap<String, Object>();
|
|
|
|
|
|
|
|
|
|
public AbstractBatchLogger(Environment environment) {
|
|
|
|
|
//ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
|
|
|
|
|
ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
|
|
|
|
|
|
|
|
|
|
//executor.scheduleAtFixedRate(() -> this.outputData(), Long.parseLong(environment.getProperty("http-logger.initial-delay")), Long.parseLong(environment.getProperty("http-logger.delay")), TimeUnit.SECONDS);
|
|
|
|
|
executor.scheduleAtFixedRate(() -> this.outputData(), Long.parseLong(environment.getProperty("http-logger.initial-delay")), Long.parseLong(environment.getProperty("http-logger.delay")), TimeUnit.SECONDS);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract LoggingOutputType logOutputType();
|
|
|
|
|