Exemplo n.º 1
0
 public void LogToConsole(ExecutionArgs args)
 {
     _logModel = new LogModel(args);
     Process(() =>
     {
         _logger = new SystemLogger();
         _logger.Log(_logModel);
     });
 }
Exemplo n.º 2
0
 public void LogToMongoDB(ExecutionArgs args, MongoConnection mongoConnection, string collectionName = "")
 {
     _logModel = new LogModel(args);
     _logModel.CollectionName = GetNameOfLog(collectionName);
     Process(() =>
     {
         _logger = new MongoManager(mongoConnection);
         _logger.Log(_logModel);
     });
 }
Exemplo n.º 3
0
 public void LogToFile(ExecutionArgs args, string folderPath)
 {
     _logModel            = new LogModel(args);
     _logModel.FolderPath = folderPath;
     Process(() =>
     {
         _logger = new FileManager();
         _logger.Log(_logModel);
     });
 }
Exemplo n.º 4
0
 public void LogToMSSQL(ExecutionArgs args, ADOConnection connection, string TableName = "")
 {
     _logModel           = new LogModel(args);
     _logModel.TableName = GetNameOfLog(TableName);
     Process(() =>
     {
         _logger = new SQLManager(connection);
         _logger.Log(_logModel);
     });
 }