Skip to content

Commit

Permalink
Merge pull request #19 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
add support for ILoggerProviderAsync
  • Loading branch information
Ali-YousefiTelori authored Dec 4, 2023
2 parents ad78a02 + 39de9eb commit 3e8b087
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.4</Version>
<Version>0.0.0.5</Version>
<Description>logger wrapper</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>log,logger,logging,log4net</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.4</Version>
<Version>0.0.0.5</Version>
<Description>logger wrapper</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>log,logger,logging</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static IServiceCollection AddLoggerScoped(this IServiceCollection service
options.ThrowIfNull(nameof(options));
options(new LoggerOption());
services.AddScoped<ILoggerProvider>(service => LoggerOptionBuilder.GetLogger());
services.AddScoped<ILoggerProviderAsync>(service => LoggerOptionBuilder.GetLogger());
return services;
}

Expand All @@ -45,6 +46,7 @@ public static IServiceCollection AddLoggerTransient(this IServiceCollection serv
options.ThrowIfNull(nameof(options));
options(new LoggerOption());
services.AddTransient<ILoggerProvider>(service => LoggerOptionBuilder.GetLogger());
services.AddTransient<ILoggerProviderAsync>(service => LoggerOptionBuilder.GetLogger());
return services;
}

Expand All @@ -59,6 +61,7 @@ public static IServiceCollection AddLoggerSingleton(this IServiceCollection serv
options.ThrowIfNull(nameof(options));
options(new LoggerOption());
services.AddSingleton<ILoggerProvider>(service => LoggerOptionBuilder.GetLogger());
services.AddSingleton<ILoggerProviderAsync>(service => LoggerOptionBuilder.GetLogger());
return services;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.4</Version>
<Version>0.0.0.5</Version>
<Description>logger wrapper</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>log,logger,logging,nlog</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.4</Version>
<Version>0.0.0.5</Version>
<Description>logger wrapper</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>log,logger,logging,serilog</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
<Authors>EasyMicroservices</Authors>
<IsPackable>true</IsPackable>
<Version>0.0.0.4</Version>
<Version>0.0.0.5</Version>
<Description>Logger and Auditing system</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>logging,auditing</PackageTags>
Expand Down

0 comments on commit 3e8b087

Please sign in to comment.