code: protected void formatAndWrite(LogLevel level, String correlationId, Exception error, String message,
  			Object[] args) {
  		message = message != null ? message : "";
  		if (args != null && args.length > 0)
  			message = String.format(message, args);
  
  		write(level, correlationId, error, message);
  	}
docs: Formats the log message and writes it to the logger destination.
  
  @param level         a log level.
  @param correlationId (optional) transaction id to trace execution through
  call chain.
  @param error         an error object associated with this message.
  @param message       a human-readable message to log.
  @param args          arguments to parameterize the message.