code: protected String format(String key, String defaultPattern, Object... args) {
          String escape = escape(defaultPattern);
          String s = lookupPattern(key, escape);
          Object[] objects = escapeAll(args);
          return MessageFormat.format(s, objects);
      }
docs: Formats event output by key, usually equal to the method name.
  
  @param key the event key
  @param defaultPattern the default pattern to return if a custom pattern
  is not found
  @param args the args used to format output
  @return A formatted event output