com.raynigon.ecs.logging.converter.EventConverterHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecs-logging-base Show documentation
Show all versions of ecs-logging-base Show documentation
The ecs-logging-base is a part of the unit-api
The newest version!
package com.raynigon.ecs.logging.converter;
import ch.qos.logback.core.spi.DeferredProcessingAware;
import com.raynigon.ecs.logging.event.EcsLogEvent;
import com.raynigon.ecs.logging.processor.EventProcessor;
import java.util.List;
public class EventConverterHelper {
public static > R apply(List processors, R result, E event) {
R resultingEvent = result;
for (EventProcessor processor : processors) {
resultingEvent = processor.process(resultingEvent, event);
}
return resultingEvent;
}
}