public static boolean report ( String message , Throwable error ) { boolean acc = true ; for ( Reporter reporter : reporters ) { if ( reportFactory != null && reporter instanceof EnhancedReporter ) { Report report = reportFactory . create ( context , message , error ) ; acc = acc && ( ( EnhancedReporter ) reporter ) . send ( context , report ) ; } else { acc = acc && reporter . send ( context , message , error ) ; } } return acc ; }
Triggers a Report . This method generates the report and send it with all configured reporters .