{
if ( isUseFile() )
{
if ( BRIEF_REPORT_FORMAT.equals( getReportFormat() ) )
{
return new BriefFileReporter( trimStackTrace, reportsDirectory, getReportNameSuffix() );
}
else if ( PLAIN_REPORT_FORMAT.equals( getReportFormat() ) )
{
return new FileReporter( trimStackTrace, reportsDirectory, getReportNameSuffix() );
}