public static void log ( Logger logger , Level level , String message , Throwable throwable , Object parameter ) { if ( logger . isLoggable ( level ) ) { final String formattedMessage = MessageFormat . format ( localize ( logger , message ) , parameter ) ; doLog ( logger , level , formattedMessage , throwable ) ; } }
Allows both parameter substitution and a typed Throwable to be logged .