public void handle(LogMessage msg) {
        if (msg == null) {
            throw new NullPointerException("LogMessage was null");
        }

        if (batchedMode.get()) {
            addToBatch(msg);
        } else {
            send(msg);
        }
        messageCount.incrementAndGet();
    }
Dispatches a message to all the LogHandler instances we've
got registered.  The main entry point for LogMessage instances
into the log server.

@param msg The LogMessage instance we wish to dispatch to the
           plugins
logserver/src/main/java/com/yahoo/logserver/LogDispatcher.java