@Override
    public void warn(Supplier<?> function) {
        if (function != null && logger.isWarnEnabled()) {
            logger.warn(String.valueOf(function.get()));
        }
    }
Default constructor.

@param logger non-null SLF4J logger
clickhouse-data/src/main/java/com/clickhouse/logging/Slf4jLogger.java