public void publish(LogRecord record) {
        // Silently ignore null records.
        if (record == null) {
            return;
        }

        Logger slf4jLogger = getSLF4JLogger(record);
        // this is a check to avoid calling the underlying logging system
        // with a null message. While it is legitimate to invoke j.u.l. with
        // a null message, other logging frameworks do not support this.
        // see also http://jira.qos.ch/browse/SLF4J-99
        if (record.getMessage() == null) {
            record.setMessage("");
        }
        if (slf4jLogger instanceof LocationAwareLogger) {
            callLocationAwareLogger((LocationAwareLogger) slf4jLogger, record);
        } else {
            callPlainSLF4JLogger(slf4jLogger, record);
        }
    }
Publish a LogRecord.
<p>
The logging request was made initially to a Logger object, which
initialized the LogRecord and forwarded it here.
<p>
This handler ignores the Level attached to the LogRecord, as SLF4J cares
about discarding log statements.

@param record Description of the log event. A null record is silently ignored
              and is not published.
jul-to-slf4j/src/main/java/org/slf4j/bridge/SLF4JBridgeHandler.java