public void LogToConsole(ExecutionArgs args) { _logModel = new LogModel(args); Process(() => { _logger = new SystemLogger(); _logger.Log(_logModel); }); }
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); }); }
public void LogToFile(ExecutionArgs args, string folderPath) { _logModel = new LogModel(args); _logModel.FolderPath = folderPath; Process(() => { _logger = new FileManager(); _logger.Log(_logModel); }); }
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); }); }