From 178ed9556551f66ad9a6e9342bc4f31285d24556 Mon Sep 17 00:00:00 2001 From: Ali-YousefiTelori Date: Wed, 18 Oct 2023 16:05:18 +0000 Subject: [PATCH 1/5] "Updated code coverage badges [skip ci]" --- src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg | 2 +- src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg b/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg index b872e82..0cf8564 100644 --- a/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg +++ b/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg @@ -1 +1 @@ - coverage: branchcoverage: branch0%0% \ No newline at end of file + coverage: branchcoverage: branch90%90% \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg b/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg index a63b82b..cfdf934 100644 --- a/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg +++ b/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line58.41%58.41% \ No newline at end of file + coverage: linecoverage: line85.03%85.03% \ No newline at end of file From e66ba25930093b5ede3cdbcfcda63b40264990c0 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Thu, 19 Oct 2023 16:30:33 +0330 Subject: [PATCH 2/5] Add Support for Dependency injection --- .../Log4netExtensions.cs | 27 +++++++ ...services.Logger.DependencyInjection.csproj | 37 ++++++++++ .../LoggerExtensions.cs | 26 +++++++ .../NLogExtensions.cs | 26 +++++++ .../SerilogExtensions.cs | 27 +++++++ .../BaseProviderAsyncTest.cs | 70 +++++++++++++++++++ .../EasyMicroservices.Logger.Tests.csproj | 3 + .../Providers/Log4netProviderTest.cs | 6 ++ .../Providers/NLogProviderTest.cs | 6 ++ .../Providers/SerilogProviderTest.cs | 9 +++ .../EasyMicroservices.Logger.sln | 13 +++- .../Interfaces/ILoggerProviderAsync.cs | 2 +- .../Options/LoggerOption.cs | 13 ++++ .../Options/LoggerOptionBuilder.cs | 36 ++++++++++ .../Providers/BaseProvider.cs | 2 +- 15 files changed, 298 insertions(+), 5 deletions(-) create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/Log4netExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/NLogExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/SerilogExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOption.cs create mode 100644 src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/Log4netExtensions.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/Log4netExtensions.cs new file mode 100644 index 0000000..94bfcd9 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/Log4netExtensions.cs @@ -0,0 +1,27 @@ +using EasyMicroservices.Logger.Log4net.Providers; +using EasyMicroservices.Logger.Options; +using log4net; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class Log4netExtensions + { + /// + /// + /// + /// + /// + /// + public static LoggerOption UseLog4net(this LoggerOption options, ILog log) + { + options.ThrowIfNull(nameof(options)); + log.ThrowIfNull(nameof(log)); + LoggerOptionBuilder.UseLogger(() => new Log4netProvider(log)); + return options; + } + } +} diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj new file mode 100644 index 0000000..eff80c7 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/EasyMicroservices.Logger.DependencyInjection.csproj @@ -0,0 +1,37 @@ + + + + + + net7.0 + + + + + netstandard2.0;netstandard2.1;net6.0;net48;net7.0 + + + + + + AnyCPU;x64;x86 + EasyMicroservices + true + 0.0.0.1 + logger wrapper + EasyMicroservices@gmail.com + log,logger,logging + https://github.com/EasyMicroservices/Logger + latest + true + .\bin\$(Configuration)\$(TargetFramework)\EasyMicroservices.Logger.DependencyInjection.xml + + + + + + + + + + \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs new file mode 100644 index 0000000..5ec8e3f --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs @@ -0,0 +1,26 @@ +using EasyMicroservices.Logger.Interfaces; +using EasyMicroservices.Logger.Options; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class LoggerExtensions + { + /// + /// + /// + /// + /// + /// + public static IServiceCollection AddLogger(this IServiceCollection services, Action options) + { + options.ThrowIfNull(nameof(options)); + options(new LoggerOption()); + services.AddScoped(service => LoggerOptionBuilder.GetLogger()); + return services; + } + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/NLogExtensions.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/NLogExtensions.cs new file mode 100644 index 0000000..dbcb4ac --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/NLogExtensions.cs @@ -0,0 +1,26 @@ +using EasyMicroservices.Logger.NLog.Providers; +using EasyMicroservices.Logger.Options; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class NLogExtensions + { + /// + /// + /// + /// + /// + /// + public static LoggerOption UseLog4net(this LoggerOption options, NLog.Logger logger) + { + options.ThrowIfNull(nameof(options)); + logger.ThrowIfNull(nameof(logger)); + LoggerOptionBuilder.UseLogger(() => new NLogProvider(logger)); + return options; + } + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/SerilogExtensions.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/SerilogExtensions.cs new file mode 100644 index 0000000..8b8d4f9 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/SerilogExtensions.cs @@ -0,0 +1,27 @@ +using EasyMicroservices.Logger.Options; +using EasyMicroservices.Logger.Serilog.Providers; +using Serilog; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class SerilogExtensions + { + /// + /// + /// + /// + /// + /// + public static LoggerOption UseLog4net(this LoggerOption options, LoggerConfiguration loggerConfiguration) + { + options.ThrowIfNull(nameof(options)); + loggerConfiguration.ThrowIfNull(nameof(loggerConfiguration)); + LoggerOptionBuilder.UseLogger(() => new SerilogProvider(loggerConfiguration)); + return options; + } + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs new file mode 100644 index 0000000..afb31db --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs @@ -0,0 +1,70 @@ +using EasyMicroservices.Logger.Interfaces; +using System; +using System.Threading.Tasks; +using Xunit; + +namespace EasyMicroservices.Logger.Tests +{ + public abstract class BaseProviderAsyncTest + { + ILoggerProviderAsync _logger; + public BaseProviderAsyncTest(ILoggerProviderAsync logger) + { + _logger = logger; + } + + [Theory] + [InlineData("Hello world Debug")] + [InlineData("Hello world Debug 2")] + public async Task MessageDebug(string message) + { + await _logger.DebugAsync(message); + await _logger.DebugAsync(message, new Exception($"exception {message}")); + } + + [Theory] + [InlineData("Hello world Verbose")] + [InlineData("Hello world Verbose 2")] + public async Task MessageVerbose(string message) + { + await _logger.VerboseAsync(message); + await _logger.VerboseAsync(message, new Exception($"exception {message}")); + } + + [Theory] + [InlineData("Hello world Information")] + [InlineData("Hello world Information 2")] + public async Task MessageInformation(string message) + { + await _logger.InformationAsync(message); + await _logger.InformationAsync(message, new Exception($"exception {message}")); + } + + [Theory] + [InlineData("Hello world Warning")] + [InlineData("Hello world Warning 2")] + public async Task MessageWarning(string message) + { + await _logger.WarningAsync(message); + await _logger.WarningAsync(message, new Exception($"exception {message}")); + } + + [Theory] + [InlineData("Hello world Error")] + [InlineData("Hello world Error 2")] + public async Task MessageError(string message) + { + await _logger.ErrorAsync(message); + await _logger.ErrorAsync(message, new Exception($"exception {message}")); + } + + [Theory] + [InlineData("Hello world Fatal")] + [InlineData("Hello world Fatal 2")] + public async Task MessageFatal(string message) + { + await _logger.FatalAsync(message); + await _logger.FatalAsync(message, new Exception($"exception {message}")); + } + } +} diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj index 3ea895c..1223e28 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj @@ -7,10 +7,12 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -19,6 +21,7 @@ + diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/Log4netProviderTest.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/Log4netProviderTest.cs index f08397f..103b579 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/Log4netProviderTest.cs +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/Log4netProviderTest.cs @@ -14,4 +14,10 @@ public Log4netProviderTest() : base(new Log4netProvider(LogManager.GetLogger(typ { } } + public class Log4netProviderAsyncTest : BaseProviderAsyncTest + { + public Log4netProviderAsyncTest() : base(new Log4netProvider(LogManager.GetLogger(typeof(BaseProviderTest)))) + { + } + } } diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/NLogProviderTest.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/NLogProviderTest.cs index ccd5ac7..ffb0d93 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/NLogProviderTest.cs +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/NLogProviderTest.cs @@ -14,4 +14,10 @@ public NLogProviderTest() : base(new NLogProvider(LogManager.GetCurrentClassLogg { } } + public class NLogProviderAsyncTest : BaseProviderAsyncTest + { + public NLogProviderAsyncTest() : base(new NLogProvider(LogManager.GetCurrentClassLogger())) + { + } + } } diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/SerilogProviderTest.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/SerilogProviderTest.cs index 723ebd4..ee134da 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/SerilogProviderTest.cs +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Tests/Providers/SerilogProviderTest.cs @@ -11,4 +11,13 @@ public SerilogProviderTest() : base(new SerilogProvider(new LoggerConfiguration( { } } + + public class SerilogProviderAsyncTest : BaseProviderAsyncTest + { + public SerilogProviderAsyncTest() : base(new SerilogProvider(new LoggerConfiguration() + .WriteTo.Console() + .WriteTo.File("serilog.txt"))) + { + } + } } diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln index 3eb5800..92735fe 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln @@ -15,11 +15,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Implementations", "Implemen EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{F0D8AE1A-0B1B-4B99-89FB-41BC66943B32}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Serilog", "EasyMicroservices.Logger.Serilog\EasyMicroservices.Logger.Serilog.csproj", "{BCE7F22D-6E74-4F9B-BF18-81E0D537CA49}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyMicroservices.Logger.Serilog", "EasyMicroservices.Logger.Serilog\EasyMicroservices.Logger.Serilog.csproj", "{BCE7F22D-6E74-4F9B-BF18-81E0D537CA49}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Log4net", "EasyMicroservices.Logger. Log4net\EasyMicroservices.Logger.Log4net.csproj", "{F792825F-75B4-4A07-9091-B9D8B4698A6A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyMicroservices.Logger.Log4net", "EasyMicroservices.Logger. Log4net\EasyMicroservices.Logger.Log4net.csproj", "{F792825F-75B4-4A07-9091-B9D8B4698A6A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.NLog", "EasyMicroservices.Logger.NLog\EasyMicroservices.Logger.NLog.csproj", "{82A0765F-09D8-4EC2-8A26-C5375C151C83}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyMicroservices.Logger.NLog", "EasyMicroservices.Logger.NLog\EasyMicroservices.Logger.NLog.csproj", "{82A0765F-09D8-4EC2-8A26-C5375C151C83}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.DependencyInjection", "EasyMicroservices.Logger.DependencyInjection\EasyMicroservices.Logger.DependencyInjection.csproj", "{B06FB19E-791E-43E7-BE00-3EC01698A1AE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -47,6 +49,10 @@ Global {82A0765F-09D8-4EC2-8A26-C5375C151C83}.Debug|Any CPU.Build.0 = Debug|Any CPU {82A0765F-09D8-4EC2-8A26-C5375C151C83}.Release|Any CPU.ActiveCfg = Release|Any CPU {82A0765F-09D8-4EC2-8A26-C5375C151C83}.Release|Any CPU.Build.0 = Release|Any CPU + {B06FB19E-791E-43E7-BE00-3EC01698A1AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B06FB19E-791E-43E7-BE00-3EC01698A1AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B06FB19E-791E-43E7-BE00-3EC01698A1AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B06FB19E-791E-43E7-BE00-3EC01698A1AE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -60,6 +66,7 @@ Global {BCE7F22D-6E74-4F9B-BF18-81E0D537CA49} = {B41249C7-F55F-4890-A2A7-177DEA51114C} {F792825F-75B4-4A07-9091-B9D8B4698A6A} = {B41249C7-F55F-4890-A2A7-177DEA51114C} {82A0765F-09D8-4EC2-8A26-C5375C151C83} = {B41249C7-F55F-4890-A2A7-177DEA51114C} + {B06FB19E-791E-43E7-BE00-3EC01698A1AE} = {B41249C7-F55F-4890-A2A7-177DEA51114C} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D85582B4-E6F8-41D7-9BEC-F4C8B64DDF1B} diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs index 71c7b02..97d7c28 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs @@ -6,7 +6,7 @@ namespace EasyMicroservices.Logger.Interfaces /// /// General logger define here /// - public interface ILoggerProviderAsync + public interface ILoggerProviderAsync : ILoggerProvider { /// /// Verbose level log diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOption.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOption.cs new file mode 100644 index 0000000..3fdb843 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOption.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace EasyMicroservices.Logger.Options +{ + /// + /// + /// + public class LoggerOption + { + } +} diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs new file mode 100644 index 0000000..c125629 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs @@ -0,0 +1,36 @@ +using EasyMicroservices.Logger.Interfaces; +using System; + +namespace EasyMicroservices.Logger.Options +{ + /// + /// + /// + public static class LoggerOptionBuilder + { + private static Func _loggerFunc; + + /// + /// + /// + /// + public static void UseLogger(Func func) + { + if (_loggerFunc != null) + throw new Exception("You set UseLogger once."); + _loggerFunc = func; + } + + /// + /// + /// + /// + /// + public static ILoggerProviderAsync GetLogger() + { + if (_loggerFunc == null) + throw new Exception("You did not set UseLogger."); + return _loggerFunc(); + } + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Providers/BaseProvider.cs b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Providers/BaseProvider.cs index 4a9716d..bb77028 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Providers/BaseProvider.cs +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/Providers/BaseProvider.cs @@ -10,7 +10,7 @@ namespace EasyMicroservices.Logger.Providers /// /// /// - public abstract class BaseProvider : ILoggerProviderAsync, ILoggerProvider + public abstract class BaseProvider : ILoggerProviderAsync { internal ExtractedLogInfo Extract(params object[] args) { From c2a9ff5575b4fda4db9df9e31044ae0c434d34c0 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Thu, 19 Oct 2023 16:31:08 +0330 Subject: [PATCH 3/5] add versions --- .../EasyMicroservices.Logger.Log4net.csproj | 2 +- .../EasyMicroservices.Logger.NLog.csproj | 2 +- .../EasyMicroservices.Logger.Serilog.csproj | 2 +- .../EasyMicroservices.Logger/EasyMicroservices.Logger.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj index 3e81c7b..cb75f8c 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.1 + 0.0.0.2 logger wrapper EasyMicroservices@gmail.com log,logger,logging,log4net diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj index 7748e9e..72b173e 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.1 + 0.0.0.2 logger wrapper EasyMicroservices@gmail.com log,logger,logging,nlog diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj index e41c171..b4f2f3e 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.1 + 0.0.0.2 logger wrapper EasyMicroservices@gmail.com log,logger,logging,serilog diff --git a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj index 3e11a03..4fd5a16 100644 --- a/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj +++ b/src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger/EasyMicroservices.Logger.csproj @@ -4,7 +4,7 @@ netstandard2.0;netstandard2.1;net6.0 EasyMicroservices true - 0.0.0.1 + 0.0.0.2 Logger and Auditing system EasyMicroservice@gmail.com logging,auditing From b5a3aa6b944fdc281a55aa88b4b4ce8d51136415 Mon Sep 17 00:00:00 2001 From: Ali-YousefiTelori Date: Thu, 19 Oct 2023 13:02:51 +0000 Subject: [PATCH 4/5] "Updated code coverage badges [skip ci]" --- src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg | 2 +- src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg b/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg index 0cf8564..5f65ad2 100644 --- a/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg +++ b/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg @@ -1 +1 @@ - coverage: branchcoverage: branch90%90% \ No newline at end of file + coverage: branchcoverage: branch64.28%64.28% \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg b/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg index cfdf934..8b6dbe9 100644 --- a/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg +++ b/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line85.03%85.03% \ No newline at end of file + coverage: linecoverage: line78.26%78.26% \ No newline at end of file From d37db2564012473470f4ca3fcfcfd283110b9a72 Mon Sep 17 00:00:00 2001 From: Ali-YousefiTelori Date: Thu, 19 Oct 2023 13:29:21 +0000 Subject: [PATCH 5/5] "Updated code coverage badges [skip ci]" --- src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg | 2 +- src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg b/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg index 3649111..5f65ad2 100644 --- a/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg +++ b/src/CSharp/EasyMicroservices.Logger/coverage-badge-branch.svg @@ -1 +1 @@ - coverage: branchcoverage: branch64.28%64.28% + coverage: branchcoverage: branch64.28%64.28% \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg b/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg index 2f2aae7..8b6dbe9 100644 --- a/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg +++ b/src/CSharp/EasyMicroservices.Logger/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line85.03%85.03% + coverage: linecoverage: line78.26%78.26% \ No newline at end of file