private ReportLogMode GetReportLogMode (GeneralOptions options)
{
if (options.LogReportsWithoutWarningsOrErrors)
{
// HINT: althoug it is possible that in this case LogReportsWithWarnings is false,
// the UI doesnt offer that feature to just configure logging of reports without errors and warning
return ReportLogMode.All;
}
else if (options.LogReportsWithWarnings)
{
return ReportLogMode.WarningsOrErrors;
}
else
{
return ReportLogMode.OnlyWithErrors;
}
}