public LogExtractionService(IClosingAppHandler closingAppHandler, IParserSelector parserSelector, IModuleClassifier moduleClassifier)
 {
     _parserSelector               = parserSelector;
     _moduleClassifier             = moduleClassifier;
     _folderToDeleteOnExit         = new List <string>();
     closingAppHandler.ClosingApp += OnClosingApp;
 }
Example #2
0
 public LogFile(string path, IParserSelector parserSelector, IModuleClassifier moduleClassifier)
 {
     _path        = path;
     _entries     = new List <LogEntry>();
     FileName     = System.IO.Path.GetFileNameWithoutExtension(_path);
     Module       = moduleClassifier.GetModuleForFile(System.IO.Path.GetFileName(_path));
     IsErrorsFile = FileName.EndsWith(".Errors");
     _logParser   = parserSelector.GetParser(this);
 }