public static void LogExceptionCreatingLogFile(IAnalysisContext context, string fileName, Exception exception)
{
if (context == null)
{
throw new ArgumentNullException(nameof(context));
}
// Could not create output file: '{0}'
context.Logger.LogConfigurationNotification(
CreateNotification(
context.TargetUri,
ERR997_ExceptionCreatingLogFile,
NotificationLevel.Error,
exception,
false,
fileName));
context.RuntimeErrors |= RuntimeConditions.ExceptionCreatingLogFile;
}