if (this.logFactory == null) {
if (!strict) {
// if the logFactory is still not set and we are fine to use
// non-strict logging,
// then the SLF4JLogFactory logging factory will be used by default
logFactory = new SLF4JLogFactory(settings);
} else {
throw new IllegalArgumentException(
"The strict option is switched on. "
+ "You should either inject the required logging factory via spring context, "
+ "or specify the logging factory parameters via endpoint URI");