private void formatAndLog ( int level , String format , Object arg1 , Object arg2 ) { if ( ! isLevelEnabled ( level ) ) { return ; } FormattingTuple tp = MessageFormatter . format ( format , arg1 , arg2 ) ; log ( level , tp . getMessage ( ) , tp . getThrowable ( ) ) ; }
For formatted messages first substitute arguments and then log .