public AzureTableLogger( [NotNull] string componentName, [NotNull] IAzureTableLogPersistenceQueue persistenceQueue) { _componentName = componentName ?? throw new ArgumentNullException(nameof(componentName)); _persistenceQueue = persistenceQueue ?? throw new ArgumentNullException(nameof(persistenceQueue)); }
public AzureTableLoggerProvider( [NotNull] IReloadingManager <string> connectionString, [NotNull] string tableName, [NotNull] AzureTableLoggerOptions options) { _loggers = new ConcurrentDictionary <string, AzureTableLogger>(); var storage = AzureTableStorage <LogEntity> .Create(connectionString, tableName, LogFactory.LastResort); _persistenceQueue = new AzureTableLogPersistenceQueue( storage, "General log", LogFactory.LastResort, options.MaxBatchLifetime, options.BatchSizeThreshold); }