@ Override public void error ( String msg , Throwable error ) { try { if ( ( verbose || stacktrace ) && error != null ) { printStackTrace ( msg , error ) ; error ( ERROR , msg ) ; } else { error ( ERROR , msg + STACKTRACE_MESSAGE ) ; } } finally { postPrintMessage ( ) ; } }
Use to log an error .