using Microsoft.Extensions.Logging; namespace EonaCat.Logger.EonaCatCoreLogger { // This file is part of the EonaCat project(s) which is released under the Apache License. // See the LICENSE file or go to https://EonaCat.com/License for full license details. public class BatchingDatabaseLoggerProvider : ILoggerProvider { private readonly BatchingDatabaseLoggerOptions _options; public BatchingDatabaseLoggerProvider(BatchingDatabaseLoggerOptions options) { _options = options; } public ILogger CreateLogger(string categoryName) { return new BatchingDatabaseLogger(categoryName, _options); } public void Dispose() { // Will be disposed in BatchingDatabaseLogger itself } } }