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 ) ; }
Formats event output by key usually equal to the method name .