From 39de9ebe82e28020693c064d34d4482f46c5d59e Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Mon, 4 Dec 2023 18:20:20 +0330 Subject: [PATCH] add support for ILoggerProviderAsync --- .../EasyMicroservices.Logger.Log4net.csproj | 2 +- .../EasyMicroservices.Logger.DependencyInjection.csproj | 2 +- .../LoggerExtensions.cs | 3 +++ .../EasyMicroservices.Logger.NLog.csproj | 2 +- .../EasyMicroservices.Logger.Serilog.csproj | 2 +- .../EasyMicroservices.Logger/EasyMicroservices.Logger.csproj | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj b/src/CSharp/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj index d349794..403d05d 100644 --- a/src/CSharp/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj +++ b/src/CSharp/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.4 + 0.0.0.5 logger wrapper EasyMicroservices@gmail.com log,logger,logging,log4net diff --git a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj index 94054c9..01b79ee 100644 --- a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj +++ b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.4 + 0.0.0.5 logger wrapper EasyMicroservices@gmail.com log,logger,logging diff --git a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs index b07caaa..daea9ec 100644 --- a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs +++ b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs @@ -31,6 +31,7 @@ public static IServiceCollection AddLoggerScoped(this IServiceCollection service options.ThrowIfNull(nameof(options)); options(new LoggerOption()); services.AddScoped(service => LoggerOptionBuilder.GetLogger()); + services.AddScoped(service => LoggerOptionBuilder.GetLogger()); return services; } @@ -45,6 +46,7 @@ public static IServiceCollection AddLoggerTransient(this IServiceCollection serv options.ThrowIfNull(nameof(options)); options(new LoggerOption()); services.AddTransient(service => LoggerOptionBuilder.GetLogger()); + services.AddTransient(service => LoggerOptionBuilder.GetLogger()); return services; } @@ -59,6 +61,7 @@ public static IServiceCollection AddLoggerSingleton(this IServiceCollection serv options.ThrowIfNull(nameof(options)); options(new LoggerOption()); services.AddSingleton(service => LoggerOptionBuilder.GetLogger()); + services.AddSingleton(service => LoggerOptionBuilder.GetLogger()); return services; } } diff --git a/src/CSharp/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj b/src/CSharp/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj index 235238a..3dbde58 100644 --- a/src/CSharp/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj +++ b/src/CSharp/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.4 + 0.0.0.5 logger wrapper EasyMicroservices@gmail.com log,logger,logging,nlog diff --git a/src/CSharp/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj b/src/CSharp/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj index f950b72..b77339a 100644 --- a/src/CSharp/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.4 + 0.0.0.5 logger wrapper EasyMicroservices@gmail.com log,logger,logging,serilog diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj index 182e81f..ed94b90 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj @@ -4,7 +4,7 @@ netstandard2.0;netstandard2.1;net6.0 EasyMicroservices true - 0.0.0.4 + 0.0.0.5 Logger and Auditing system EasyMicroservice@gmail.com logging,auditing