public void Analyze(string filename)
 {
     if (filename.Length < MinNameLength)
     {
         try
         {
             _logger.LogError(string.Format("Filename too short: {0}", filename));
         }
         catch (Exception e)
         {
             _webService.Write(new ErrorInfo(1000, e.Message));
         }
     }
 }
 private void OnError(string text)
 {
     _log.LogError(text);
 }