// if no formatter is available in the Registry, create a local one of the default type, for a single use
if (localFormatter == null) {
localFormatter = new LogFormatter();
setProperties(localFormatter, parameters);
}
logger = new CamelLogProcessor(camelLogger, localFormatter);
}
LogEndpoint endpoint = new LogEndpoint(uri, this);
setProperties(endpoint, parameters);
return new LogEndpoint(uri, this, logger);