Long groupInterval = getAndRemoveParameter(parameters, "groupInterval", Long.class);
CamelLogger camelLogger = new CamelLogger(remaining, level, marker);
Processor logger;
if (groupSize != null) {
logger = new ThroughputLogger(camelLogger, groupSize);
} else if (groupInterval != null) {
Boolean groupActiveOnly = getAndRemoveParameter(parameters, "groupActiveOnly", Boolean.class, Boolean.TRUE);
Long groupDelay = getAndRemoveParameter(parameters, "groupDelay", Long.class);
logger = new ThroughputLogger(camelLogger, this.getCamelContext(), groupInterval, groupDelay, groupActiveOnly);
} else {
LogFormatter formatter = new LogFormatter();
setProperties(formatter, parameters);
logger = new CamelLogProcessor(camelLogger, formatter);