code: static InternalLogger wrapLogger(Logger logger) {
          return logger instanceof LocationAwareLogger ?
                  new LocationAwareSlf4JLogger((LocationAwareLogger) logger) : new Slf4JLogger(logger);
      }
docs: package-private for testing.