示例#1
0
 public static void TestLogging(Object sender)
 {
     DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), "Message from the logger");
     if (sender as string != null)
     {
         DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), sender as string);
     }
 }
示例#2
0
 public static void ParserGenericFileError(Object sender, string fileName)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "The file could not be read: " + fileName);
 }
示例#3
0
 public static void SwumCacheFileNotExist(Object sender, string cachePath)
 {
     DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), "Cache file does not exist: " + cachePath);
 }
示例#4
0
 public static void SwumFileNotFoundInArchive(Object sender, string sourcePath)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "File not found in archive: " + sourcePath);
 }
示例#5
0
 public static void ParserFileNotFoundInArchiveError(Object sender, string fileName)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "File not found in archive: " + fileName);
 }
示例#6
0
 public static void SwumErrorGeneratingSrcML(Object sender, string sourcePath)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "Error converting file to SrcML, no file unit found: " + sourcePath);
 }
示例#7
0
 public static void SwumErrorCreatingSwum(Object sender, string sourcePath, Exception ex)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "Error creating SWUM on file: " + sourcePath, ex);
 }
示例#8
0
 public static void S3Error(Object sender, Exception awsException)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "AWS Error occurred when writing an object", awsException);
 }
示例#9
0
 public static void S3NoCredentials(Object sender)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "Cannot load S3 credentials. Log collecting is aborted.");
 }
示例#10
0
 public static void IndexIOError(Object sender, Exception ioEx)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "", ioEx);
 }
示例#11
0
 public static void NoS3UploadDueToChance(Object sender, int rand)
 {
     DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), "Rolled a " + rand.ToString() + " (0). No S3 upload this VS run");
 }
示例#12
0
 public static void IndexLockObtainFailed(Object sender, Exception lockFailedEx)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "", lockFailedEx);
 }
示例#13
0
 public static void UIMonitoringStopped(Object sender)
 {
     DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), "Monitoring stopped");
 }
示例#14
0
 public static void UISandoBeginInitialization(Object sender)
 {
     DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), "Sando initialization started");
 }
示例#15
0
 public static void ParserGenericException(Object sender, Exception exception)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "", exception);
 }
示例#16
0
 public static void S3UploadStarted(Object sender, string filePath)
 {
     DefaultLogEventHandlers.WriteInfoLogMessage(sender.GetType().ToString(), "Beginning to put file=" + filePath);
 }
示例#17
0
 public static void UISandoSearchingError(Object sender, Exception ex)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "", ex);
 }
示例#18
0
 public static void UIRespondToSolutionOpeningError(Object sender, Exception ex)
 {
     DefaultLogEventHandlers.WriteErrorLogMessage(sender.GetType().ToString(), "", ex);
 }