def write(level_of_message, topic, message = nil, &block)
      return false unless write_message?(level_of_message)

      writer.public_send(level_of_message, message(topic, message, &block))
    end
def write(level_of_message, topic, message = nil, &block)
      return false unless write_message?(level_of_message)

      writer.public_send(level_of_message, message(topic, message, &block))
    end
Internal: Log a message.

 level_of_message - the Symbol level of message, one of :debug, :info, :warn, :error
 topic - the String topic or full message
 message - the String message (optional)
 block - a block containing the message (optional)

 Returns false if the message was not written, otherwise returns the value of calling
 the appropriate writer method, e.g. writer.info.