LogError() public static method

public static LogError ( string errors ) : void
errors string
return void
Ejemplo n.º 1
0
 void logNewErrors()
 {
     if (!String.Equals(current_error, last_error))
     {
         char[] trimchars  = { '-', '\n', ' ' };
         string cleanerror = current_error.Trim(trimchars);
         if (!String.IsNullOrEmpty(cleanerror))
         {
             ProgramLogger.LogError(cleanerror);
         }
         last_error = current_error;
     }
 }