@Override
protected void doStart() throws Exception {
if (logger == null) {
// setup a new logger here
CamelLogger camelLogger;
LoggingLevel loggingLevel = LoggingLevel.INFO;
if (level != null) {
loggingLevel = LoggingLevel.valueOf(level);
}
if (providedLogger == null) {
camelLogger = new CamelLogger(loggerName, loggingLevel, getMarker());
} else {
camelLogger = new CamelLogger(providedLogger, loggingLevel, getMarker());
}
if (getGroupSize() != null) {
logger = new ThroughputLogger(camelLogger, getGroupSize());
} else if (getGroupInterval() != null) {
Boolean groupActiveOnly = getGroupActiveOnly() != null ? getGroupActiveOnly() : Boolean.TRUE;