From 1e9b5ea5b96bb18acec9c0c960962f87ab65881e Mon Sep 17 00:00:00 2001 From: Ali-YousefiTelori Date: Mon, 4 Dec 2023 14:51:26 +0000 Subject: [PATCH 1/9] "Updated code coverage badges [skip ci]" --- src/CSharp/coverage-badge-line.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSharp/coverage-badge-line.svg b/src/CSharp/coverage-badge-line.svg index 050b1b6..51dff8c 100644 --- a/src/CSharp/coverage-badge-line.svg +++ b/src/CSharp/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line71.59%71.59% \ No newline at end of file + coverage: linecoverage: line70.39%70.39% \ No newline at end of file From fc0cd5dd4431fd271bf576501e77d7882a4b4191 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 9 Dec 2023 23:02:42 +0330 Subject: [PATCH 2/9] Add support for Logary --- .../EasyMicroservices.Logger.Logary.csproj | 39 +++++++ .../LogaryExtensions.cs | 27 +++++ .../Providers/LogaryProvider.cs | 105 ++++++++++++++++++ .../EasyMicroservices.Logger.Tests.csproj | 1 + .../Providers/LogaryProviderTest.cs | 16 +++ src/CSharp/EasyMicroservices.Logger.sln | 9 +- .../Models/ExtractedLogInfo.cs | 1 + 7 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj create mode 100644 src/CSharp/EasyMicroservices.Logger.Logary/LogaryExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs create mode 100644 src/CSharp/EasyMicroservices.Logger.Tests/Providers/LogaryProviderTest.cs diff --git a/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj b/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj new file mode 100644 index 0000000..6601f5a --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj @@ -0,0 +1,39 @@ + + + + + + + net7.0 + + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net48;net7.0 + + + + + + AnyCPU;x64;x86 + EasyMicroservices + true + 0.0.0.5 + logger wrapper + EasyMicroservices@gmail.com + log,logger,logging,serilog + https://github.com/EasyMicroservices/Logger + latest + true + .\bin\$(Configuration)\$(TargetFramework)\EasyMicroservices.Logger.Serilog.xml + + + + + + + + + + + diff --git a/src/CSharp/EasyMicroservices.Logger.Logary/LogaryExtensions.cs b/src/CSharp/EasyMicroservices.Logger.Logary/LogaryExtensions.cs new file mode 100644 index 0000000..45d71c7 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Logary/LogaryExtensions.cs @@ -0,0 +1,27 @@ +using EasyMicroservices.Logger.Logary.Providers; +using EasyMicroservices.Logger.Options; +using Logary; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class LogaryExtensions + { + /// + /// + /// + /// + /// + /// + public static LoggerOption UseLogary(this LoggerOption options, Logger logger) + { + options.ThrowIfNull(nameof(options)); + logger.ThrowIfNull(nameof(logger)); + LoggerOptionBuilder.UseLogger(() => new LogaryProvider(logger)); + return options; + } + } +} diff --git a/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs b/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs new file mode 100644 index 0000000..b918553 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs @@ -0,0 +1,105 @@ +using EasyMicroservices.Logger.Providers; +using EasyMicroservices.ServiceContracts; +using Logary; +using System; +using System.Linq; + +namespace EasyMicroservices.Logger.Logary.Providers; +/// +/// +/// +public class LogaryProvider : BaseProvider +{ + readonly global::Logary.Logger _logger; + /// + /// + /// + /// + public LogaryProvider(global::Logary.Logger logger) + { + _logger = logger; + } + + /// + /// + /// + public LogaryProvider() + { + _logger = global::Logary.Log.Create("Default"); + } + + MessageContract Log(object[] args, LogLevel logLevel) + { + var extracted = Extract(args); + AddNotExistItems(extracted); + var message = MessageModule.Event(logLevel, $"{extracted.Messages.First()}"); + if (extracted.HasExceptions) + MessageModule.Event(logLevel, $"{extracted.Exceptions.First()}"); + + _logger.logWithAck(true,logLevel, Microsoft.FSharp.Core.FuncConvert.FromFunc((x)=> message)); + return (MessageContract)true; + } + + /// + /// + /// + /// + /// + public override MessageContract Verbose(params object[] args) + { + return Log(args, LogLevel.Verbose); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Debug(params object[] args) + { + return Log(args, LogLevel.Debug); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Information(params object[] args) + { + return Log(args, LogLevel.Info); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Warning(params object[] args) + { + return Log(args, LogLevel.Warn); + } + + /// + /// + /// + /// + /// + public override MessageContract Error(params object[] args) + { + return Log(args, LogLevel.Error); + } + + /// + /// + /// + /// + /// + public override MessageContract Fatal(params object[] args) + { + return Log(args, LogLevel.Fatal); + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj b/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj index 5a3f784..bdd2ccf 100644 --- a/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj @@ -22,6 +22,7 @@ + diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/Providers/LogaryProviderTest.cs b/src/CSharp/EasyMicroservices.Logger.Tests/Providers/LogaryProviderTest.cs new file mode 100644 index 0000000..63f03c1 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Tests/Providers/LogaryProviderTest.cs @@ -0,0 +1,16 @@ +using EasyMicroservices.Logger.Logary.Providers; + +namespace EasyMicroservices.Logger.Tests.Providers; +public class LogaryProviderTest : BaseProviderTest +{ + public LogaryProviderTest() : base(new LogaryProvider()) + { + } +} + +public class LogaryProviderAsyncTest : BaseProviderAsyncTest +{ + public LogaryProviderAsyncTest() : base(new LogaryProvider()) + { + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger.sln b/src/CSharp/EasyMicroservices.Logger.sln index 92735fe..1000c0e 100644 --- a/src/CSharp/EasyMicroservices.Logger.sln +++ b/src/CSharp/EasyMicroservices.Logger.sln @@ -21,7 +21,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyMicroservices.Logger.Lo EndProject 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}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyMicroservices.Logger.DependencyInjection", "EasyMicroservices.Logger.DependencyInjection\EasyMicroservices.Logger.DependencyInjection.csproj", "{B06FB19E-791E-43E7-BE00-3EC01698A1AE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Logary", "EasyMicroservices.Logger.Logary\EasyMicroservices.Logger.Logary.csproj", "{BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -53,6 +55,10 @@ Global {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 + {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -67,6 +73,7 @@ Global {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} + {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616} = {B41249C7-F55F-4890-A2A7-177DEA51114C} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D85582B4-E6F8-41D7-9BEC-F4C8B64DDF1B} diff --git a/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs b/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs index 2d9a93d..e3e1083 100644 --- a/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs +++ b/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs @@ -5,6 +5,7 @@ [assembly: InternalsVisibleTo("EasyMicroservices.Logger.Serilog")] [assembly: InternalsVisibleTo("EasyMicroservices.Logger.Log4net")] [assembly: InternalsVisibleTo("EasyMicroservices.Logger.NLog")] +[assembly: InternalsVisibleTo("EasyMicroservices.Logger.Logary")] namespace EasyMicroservices.Logger.Models { From 0c963504f65dbcf15c1edd5f6ac4d67256f8cfe3 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 9 Dec 2023 23:21:31 +0330 Subject: [PATCH 3/9] fix --- .../EasyMicroservices.Logger.Logary.csproj | 7 +++---- .../Providers/LogaryProvider.cs | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj b/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj index 6601f5a..2fb35d6 100644 --- a/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj @@ -1,6 +1,5 @@  - - + @@ -21,11 +20,11 @@ 0.0.0.5 logger wrapper EasyMicroservices@gmail.com - log,logger,logging,serilog + log,logger,logging,logary https://github.com/EasyMicroservices/Logger latest true - .\bin\$(Configuration)\$(TargetFramework)\EasyMicroservices.Logger.Serilog.xml + .\bin\$(Configuration)\$(TargetFramework)\EasyMicroservices.Logger.Logary.xml diff --git a/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs b/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs index b918553..4b56fa8 100644 --- a/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs +++ b/src/CSharp/EasyMicroservices.Logger.Logary/Providers/LogaryProvider.cs @@ -33,10 +33,13 @@ MessageContract Log(object[] args, LogLevel logLevel) var extracted = Extract(args); AddNotExistItems(extracted); var message = MessageModule.Event(logLevel, $"{extracted.Messages.First()}"); + _logger.logWithAck(true, logLevel, Microsoft.FSharp.Core.FuncConvert.FromFunc((x) => message)); if (extracted.HasExceptions) - MessageModule.Event(logLevel, $"{extracted.Exceptions.First()}"); + { + var errormessage = MessageModule.Event(logLevel, $"{extracted.Exceptions.First()}"); + _logger.logWithAck(true, logLevel, Microsoft.FSharp.Core.FuncConvert.FromFunc((x) => errormessage)); + } - _logger.logWithAck(true,logLevel, Microsoft.FSharp.Core.FuncConvert.FromFunc((x)=> message)); return (MessageContract)true; } From 2b0f9fee5837e168a9ae3e4de92ca27c26ce145a Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 9 Dec 2023 23:25:15 +0330 Subject: [PATCH 4/9] Support for Loupe --- .../EasyMicroservices.Logger.Loupe.csproj | 38 ++++++++ .../LoupeExtensions.cs | 24 +++++ .../Providers/LoupeProvider.cs | 93 +++++++++++++++++++ .../EasyMicroservices.Logger.Tests.csproj | 1 + .../Providers/LoupeProviderTest.cs | 17 ++++ src/CSharp/EasyMicroservices.Logger.sln | 7 ++ .../Models/ExtractedLogInfo.cs | 1 + 7 files changed, 181 insertions(+) create mode 100644 src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj create mode 100644 src/CSharp/EasyMicroservices.Logger.Loupe/LoupeExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger.Loupe/Providers/LoupeProvider.cs create mode 100644 src/CSharp/EasyMicroservices.Logger.Tests/Providers/LoupeProviderTest.cs diff --git a/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj b/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj new file mode 100644 index 0000000..f0fb861 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj @@ -0,0 +1,38 @@ + + + + + + net7.0 + + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net48;net7.0 + + + + + + AnyCPU;x64;x86 + EasyMicroservices + true + 0.0.0.5 + logger wrapper + EasyMicroservices@gmail.com + log,logger,logging,loupe + https://github.com/EasyMicroservices/Logger + latest + true + .\bin\$(Configuration)\$(TargetFramework)\EasyMicroservices.Logger.Loupe.xml + + + + + + + + + + + diff --git a/src/CSharp/EasyMicroservices.Logger.Loupe/LoupeExtensions.cs b/src/CSharp/EasyMicroservices.Logger.Loupe/LoupeExtensions.cs new file mode 100644 index 0000000..1663973 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Loupe/LoupeExtensions.cs @@ -0,0 +1,24 @@ +using EasyMicroservices.Logger.Loupe.Providers; +using EasyMicroservices.Logger.Options; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class LoupeExtensions + { + /// + /// + /// + /// + /// + public static LoggerOption UseLoupe(this LoggerOption options) + { + options.ThrowIfNull(nameof(options)); + LoggerOptionBuilder.UseLogger(() => new LoupeProvider()); + return options; + } + } +} diff --git a/src/CSharp/EasyMicroservices.Logger.Loupe/Providers/LoupeProvider.cs b/src/CSharp/EasyMicroservices.Logger.Loupe/Providers/LoupeProvider.cs new file mode 100644 index 0000000..7c07577 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Loupe/Providers/LoupeProvider.cs @@ -0,0 +1,93 @@ +using EasyMicroservices.Logger.Providers; +using EasyMicroservices.ServiceContracts; +using Gibraltar.Agent; +using System; +using System.Linq; + +namespace EasyMicroservices.Logger.Loupe.Providers; +/// +/// +/// +public class LoupeProvider : BaseProvider +{ + /// + /// + /// + public LoupeProvider() + { + + } + + MessageContract InternalLog(object[] args, Action action) + { + var extracted = Extract(args); + AddNotExistItems(extracted); + action($"{extracted.Messages.First()}", null); + if (extracted.HasExceptions) + action($"{extracted.Exceptions.First()}", null); + return (MessageContract)true; + } + + /// + /// + /// + /// + /// + public override MessageContract Verbose(params object[] args) + { + return InternalLog(args, Log.TraceVerbose); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Debug(params object[] args) + { + return InternalLog(args, Log.TraceVerbose); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Information(params object[] args) + { + return InternalLog(args, Log.TraceInformation); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Warning(params object[] args) + { + return InternalLog(args, Log.TraceWarning); + } + + /// + /// + /// + /// + /// + public override MessageContract Error(params object[] args) + { + return InternalLog(args, Log.TraceError); + } + + /// + /// + /// + /// + /// + public override MessageContract Fatal(params object[] args) + { + return InternalLog(args, Log.TraceCritical); + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj b/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj index bdd2ccf..4317240 100644 --- a/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj @@ -23,6 +23,7 @@ + diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/Providers/LoupeProviderTest.cs b/src/CSharp/EasyMicroservices.Logger.Tests/Providers/LoupeProviderTest.cs new file mode 100644 index 0000000..4472ca5 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Tests/Providers/LoupeProviderTest.cs @@ -0,0 +1,17 @@ +using EasyMicroservices.Logger.Loupe.Providers; + +namespace EasyMicroservices.Logger.Tests.Providers; + +public class LoupeProviderTest : BaseProviderTest +{ + public LoupeProviderTest() : base(new LoupeProvider()) + { + } +} + +public class LoupeProviderAsyncTest : BaseProviderAsyncTest +{ + public LoupeProviderAsyncTest() : base(new LoupeProvider()) + { + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger.sln b/src/CSharp/EasyMicroservices.Logger.sln index 1000c0e..7f664d3 100644 --- a/src/CSharp/EasyMicroservices.Logger.sln +++ b/src/CSharp/EasyMicroservices.Logger.sln @@ -25,6 +25,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyMicroservices.Logger.De EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Logary", "EasyMicroservices.Logger.Logary\EasyMicroservices.Logger.Logary.csproj", "{BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Loupe", "EasyMicroservices.Logger.Loupe\EasyMicroservices.Logger.Loupe.csproj", "{7E83A896-DC34-4FEF-9B50-9542D4D868F5}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -59,6 +61,10 @@ Global {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Debug|Any CPU.Build.0 = Debug|Any CPU {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Release|Any CPU.ActiveCfg = Release|Any CPU {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616}.Release|Any CPU.Build.0 = Release|Any CPU + {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -74,6 +80,7 @@ Global {82A0765F-09D8-4EC2-8A26-C5375C151C83} = {B41249C7-F55F-4890-A2A7-177DEA51114C} {B06FB19E-791E-43E7-BE00-3EC01698A1AE} = {B41249C7-F55F-4890-A2A7-177DEA51114C} {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616} = {B41249C7-F55F-4890-A2A7-177DEA51114C} + {7E83A896-DC34-4FEF-9B50-9542D4D868F5} = {B41249C7-F55F-4890-A2A7-177DEA51114C} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D85582B4-E6F8-41D7-9BEC-F4C8B64DDF1B} diff --git a/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs b/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs index e3e1083..7d4545b 100644 --- a/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs +++ b/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs @@ -6,6 +6,7 @@ [assembly: InternalsVisibleTo("EasyMicroservices.Logger.Log4net")] [assembly: InternalsVisibleTo("EasyMicroservices.Logger.NLog")] [assembly: InternalsVisibleTo("EasyMicroservices.Logger.Logary")] +[assembly: InternalsVisibleTo("EasyMicroservices.Logger.Loupe")] namespace EasyMicroservices.Logger.Models { From b1f8a09a2e0441eccd5e1d2ab6a19daa11030a2e Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 9 Dec 2023 23:36:12 +0330 Subject: [PATCH 5/9] Add Support for SentryProvider --- .../EasyMicroservices.Logger.Sentry.csproj | 38 +++++++ .../Providers/SentryProvider.cs | 105 ++++++++++++++++++ .../SentryExtensions.cs | 24 ++++ .../EasyMicroservices.Logger.Tests.csproj | 1 + .../Providers/SentryProviderTest.cs | 22 ++++ src/CSharp/EasyMicroservices.Logger.sln | 7 ++ .../Models/ExtractedLogInfo.cs | 1 + 7 files changed, 198 insertions(+) create mode 100644 src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj create mode 100644 src/CSharp/EasyMicroservices.Logger.Sentry/Providers/SentryProvider.cs create mode 100644 src/CSharp/EasyMicroservices.Logger.Sentry/SentryExtensions.cs create mode 100644 src/CSharp/EasyMicroservices.Logger.Tests/Providers/SentryProviderTest.cs diff --git a/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj b/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj new file mode 100644 index 0000000..077cfdb --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj @@ -0,0 +1,38 @@ + + + + + + net7.0 + + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net48;net7.0 + + + + + + AnyCPU;x64;x86 + EasyMicroservices + true + 0.0.0.5 + logger wrapper + EasyMicroservices@gmail.com + log,logger,logging,sentry + https://github.com/EasyMicroservices/Logger + latest + true + .\bin\$(Configuration)\$(TargetFramework)\EasyMicroservices.Logger.Sentry.xml + + + + + + + + + + + diff --git a/src/CSharp/EasyMicroservices.Logger.Sentry/Providers/SentryProvider.cs b/src/CSharp/EasyMicroservices.Logger.Sentry/Providers/SentryProvider.cs new file mode 100644 index 0000000..a98e66d --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Sentry/Providers/SentryProvider.cs @@ -0,0 +1,105 @@ +using EasyMicroservices.Logger.Providers; +using EasyMicroservices.ServiceContracts; +using Sentry; +using System; +using System.Linq; + +namespace EasyMicroservices.Logger.Sentry.Providers; +/// +/// +/// +public class SentryProvider : BaseProvider +{ + /// + /// + /// + public SentryProvider() + { + //using (SentrySdk.Init(o => { + // // Tells which project in Sentry to send events to: + // o.Dsn = "https://@sentry.io/"; + // // When configuring for the first time, to see what the SDK is doing: + // o.Debug = true; + // // Set TracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring. + // // We recommend adjusting this value in production. + // o.TracesSampleRate = 1.0; + //})) + //{ + + // // App code goes here - Disposing will flush events out + //} + } + + MessageContract InternalLog(object[] args, SentryLevel sentryLevel, Func action) + { + var extracted = Extract(args); + AddNotExistItems(extracted); + action($"{extracted.Messages.First()}", sentryLevel); + if (extracted.HasExceptions) + action($"{extracted.Exceptions.First()}", sentryLevel); + return (MessageContract)true; + } + + /// + /// + /// + /// + /// + public override MessageContract Verbose(params object[] args) + { + return InternalLog(args, SentryLevel.Debug, SentrySdk.CaptureMessage); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Debug(params object[] args) + { + return InternalLog(args, SentryLevel.Debug, SentrySdk.CaptureMessage); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Information(params object[] args) + { + return InternalLog(args, SentryLevel.Info, SentrySdk.CaptureMessage); + } + + /// + /// + /// + /// + /// + /// + public override MessageContract Warning(params object[] args) + { + return InternalLog(args, SentryLevel.Warning, SentrySdk.CaptureMessage); + } + + /// + /// + /// + /// + /// + public override MessageContract Error(params object[] args) + { + return InternalLog(args, SentryLevel.Error, SentrySdk.CaptureMessage); + } + + /// + /// + /// + /// + /// + public override MessageContract Fatal(params object[] args) + { + return InternalLog(args, SentryLevel.Fatal, SentrySdk.CaptureMessage); + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger.Sentry/SentryExtensions.cs b/src/CSharp/EasyMicroservices.Logger.Sentry/SentryExtensions.cs new file mode 100644 index 0000000..5ad3ee1 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Sentry/SentryExtensions.cs @@ -0,0 +1,24 @@ +using EasyMicroservices.Logger.Sentry.Providers; +using EasyMicroservices.Logger.Options; +using System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// + /// + /// + public static class SentryExtensions + { + /// + /// + /// + /// + /// + public static LoggerOption UseSentry(this LoggerOption options) + { + options.ThrowIfNull(nameof(options)); + LoggerOptionBuilder.UseLogger(() => new SentryProvider()); + return options; + } + } +} diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj b/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj index 4317240..7f499ae 100644 --- a/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Tests/EasyMicroservices.Logger.Tests.csproj @@ -25,6 +25,7 @@ + diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/Providers/SentryProviderTest.cs b/src/CSharp/EasyMicroservices.Logger.Tests/Providers/SentryProviderTest.cs new file mode 100644 index 0000000..dc3ecf4 --- /dev/null +++ b/src/CSharp/EasyMicroservices.Logger.Tests/Providers/SentryProviderTest.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using EasyMicroservices.Logger.Sentry.Providers; + +namespace EasyMicroservices.Logger.Tests.Providers; + +public class SentryProviderTest : BaseProviderTest +{ + public SentryProviderTest() : base(new SentryProvider()) + { + } +} + +public class SentryProviderAsyncTest : BaseProviderAsyncTest +{ + public SentryProviderAsyncTest() : base(new SentryProvider()) + { + } +} \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Logger.sln b/src/CSharp/EasyMicroservices.Logger.sln index 7f664d3..41094ff 100644 --- a/src/CSharp/EasyMicroservices.Logger.sln +++ b/src/CSharp/EasyMicroservices.Logger.sln @@ -27,6 +27,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Lo EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Loupe", "EasyMicroservices.Logger.Loupe\EasyMicroservices.Logger.Loupe.csproj", "{7E83A896-DC34-4FEF-9B50-9542D4D868F5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasyMicroservices.Logger.Sentry", "EasyMicroservices.Logger.Sentry\EasyMicroservices.Logger.Sentry.csproj", "{71916D95-CCBA-4993-BBC2-633BF310C02F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -65,6 +67,10 @@ Global {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Debug|Any CPU.Build.0 = Debug|Any CPU {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Release|Any CPU.ActiveCfg = Release|Any CPU {7E83A896-DC34-4FEF-9B50-9542D4D868F5}.Release|Any CPU.Build.0 = Release|Any CPU + {71916D95-CCBA-4993-BBC2-633BF310C02F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {71916D95-CCBA-4993-BBC2-633BF310C02F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {71916D95-CCBA-4993-BBC2-633BF310C02F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {71916D95-CCBA-4993-BBC2-633BF310C02F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -81,6 +87,7 @@ Global {B06FB19E-791E-43E7-BE00-3EC01698A1AE} = {B41249C7-F55F-4890-A2A7-177DEA51114C} {BD4A3C8A-EEFF-48CC-BE66-B7A0F47A5616} = {B41249C7-F55F-4890-A2A7-177DEA51114C} {7E83A896-DC34-4FEF-9B50-9542D4D868F5} = {B41249C7-F55F-4890-A2A7-177DEA51114C} + {71916D95-CCBA-4993-BBC2-633BF310C02F} = {B41249C7-F55F-4890-A2A7-177DEA51114C} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D85582B4-E6F8-41D7-9BEC-F4C8B64DDF1B} diff --git a/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs b/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs index 7d4545b..f9cd6fa 100644 --- a/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs +++ b/src/CSharp/EasyMicroservices.Logger/Models/ExtractedLogInfo.cs @@ -7,6 +7,7 @@ [assembly: InternalsVisibleTo("EasyMicroservices.Logger.NLog")] [assembly: InternalsVisibleTo("EasyMicroservices.Logger.Logary")] [assembly: InternalsVisibleTo("EasyMicroservices.Logger.Loupe")] +[assembly: InternalsVisibleTo("EasyMicroservices.Logger.Sentry")] namespace EasyMicroservices.Logger.Models { From b31edd1efa126549034a1053615415721c3b4fa0 Mon Sep 17 00:00:00 2001 From: Ali-YousefiTelori Date: Sat, 9 Dec 2023 20:07:55 +0000 Subject: [PATCH 6/9] "Updated code coverage badges [skip ci]" --- src/CSharp/coverage-badge-branch.svg | 2 +- src/CSharp/coverage-badge-line.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CSharp/coverage-badge-branch.svg b/src/CSharp/coverage-badge-branch.svg index 5f65ad2..b872e82 100644 --- a/src/CSharp/coverage-badge-branch.svg +++ b/src/CSharp/coverage-badge-branch.svg @@ -1 +1 @@ - coverage: branchcoverage: branch64.28%64.28% \ No newline at end of file + coverage: branchcoverage: branch0%0% \ No newline at end of file diff --git a/src/CSharp/coverage-badge-line.svg b/src/CSharp/coverage-badge-line.svg index 51dff8c..37715c0 100644 --- a/src/CSharp/coverage-badge-line.svg +++ b/src/CSharp/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line70.39%70.39% \ No newline at end of file + coverage: linecoverage: line0%0% \ No newline at end of file From 188487693e6be880e6ef61b6d2424061ec603478 Mon Sep 17 00:00:00 2001 From: Ali-YousefiTelori Date: Sat, 9 Dec 2023 20:09:58 +0000 Subject: [PATCH 7/9] "Updated code coverage badges [skip ci]" --- src/CSharp/coverage-badge-line.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSharp/coverage-badge-line.svg b/src/CSharp/coverage-badge-line.svg index 88cd928..37715c0 100644 --- a/src/CSharp/coverage-badge-line.svg +++ b/src/CSharp/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line0%0% + coverage: linecoverage: line0%0% \ No newline at end of file From a50c30cd689720de72a0986b21bf12f04b8705e2 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 9 Dec 2023 23:44:59 +0330 Subject: [PATCH 8/9] Break the ILoggerAsyncProvider --- .../LoggerExtensions.cs | 6 +++--- .../EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs | 4 ++-- .../{ILoggerProviderAsync.cs => ILoggerAsyncProvider.cs} | 3 ++- .../EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs | 6 +++--- .../EasyMicroservices.Logger/Providers/BaseProvider.cs | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) rename src/CSharp/EasyMicroservices.Logger/Interfaces/{ILoggerProviderAsync.cs => ILoggerAsyncProvider.cs} (95%) diff --git a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs index daea9ec..25b130f 100644 --- a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs +++ b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs @@ -31,7 +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()); + services.AddScoped(service => LoggerOptionBuilder.GetLogger()); return services; } @@ -46,7 +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()); + services.AddTransient(service => LoggerOptionBuilder.GetLogger()); return services; } @@ -61,7 +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()); + services.AddSingleton(service => LoggerOptionBuilder.GetLogger()); return services; } } diff --git a/src/CSharp/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs b/src/CSharp/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs index afb31db..a9d10ed 100644 --- a/src/CSharp/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs +++ b/src/CSharp/EasyMicroservices.Logger.Tests/BaseProviderAsyncTest.cs @@ -7,8 +7,8 @@ namespace EasyMicroservices.Logger.Tests { public abstract class BaseProviderAsyncTest { - ILoggerProviderAsync _logger; - public BaseProviderAsyncTest(ILoggerProviderAsync logger) + ILoggerAsyncProvider _logger; + public BaseProviderAsyncTest(ILoggerAsyncProvider logger) { _logger = logger; } diff --git a/src/CSharp/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs b/src/CSharp/EasyMicroservices.Logger/Interfaces/ILoggerAsyncProvider.cs similarity index 95% rename from src/CSharp/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs rename to src/CSharp/EasyMicroservices.Logger/Interfaces/ILoggerAsyncProvider.cs index 97d7c28..521347c 100644 --- a/src/CSharp/EasyMicroservices.Logger/Interfaces/ILoggerProviderAsync.cs +++ b/src/CSharp/EasyMicroservices.Logger/Interfaces/ILoggerAsyncProvider.cs @@ -1,4 +1,5 @@ using EasyMicroservices.ServiceContracts; +using System; using System.Threading.Tasks; namespace EasyMicroservices.Logger.Interfaces @@ -6,7 +7,7 @@ namespace EasyMicroservices.Logger.Interfaces /// /// General logger define here /// - public interface ILoggerProviderAsync : ILoggerProvider + public interface ILoggerAsyncProvider : ILoggerProvider { /// /// Verbose level log diff --git a/src/CSharp/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs b/src/CSharp/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs index c125629..d66a785 100644 --- a/src/CSharp/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs +++ b/src/CSharp/EasyMicroservices.Logger/Options/LoggerOptionBuilder.cs @@ -8,13 +8,13 @@ namespace EasyMicroservices.Logger.Options /// public static class LoggerOptionBuilder { - private static Func _loggerFunc; + private static Func _loggerFunc; /// /// /// /// - public static void UseLogger(Func func) + public static void UseLogger(Func func) { if (_loggerFunc != null) throw new Exception("You set UseLogger once."); @@ -26,7 +26,7 @@ public static void UseLogger(Func func) /// /// /// - public static ILoggerProviderAsync GetLogger() + public static ILoggerAsyncProvider GetLogger() { if (_loggerFunc == null) throw new Exception("You did not set UseLogger."); diff --git a/src/CSharp/EasyMicroservices.Logger/Providers/BaseProvider.cs b/src/CSharp/EasyMicroservices.Logger/Providers/BaseProvider.cs index bb77028..32c5e78 100644 --- a/src/CSharp/EasyMicroservices.Logger/Providers/BaseProvider.cs +++ b/src/CSharp/EasyMicroservices.Logger/Providers/BaseProvider.cs @@ -10,7 +10,7 @@ namespace EasyMicroservices.Logger.Providers /// /// /// - public abstract class BaseProvider : ILoggerProviderAsync + public abstract class BaseProvider : ILoggerAsyncProvider { internal ExtractedLogInfo Extract(params object[] args) { From 7ea00cb81b5d187e61dd4ed39dd337d5dca4a6f8 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 9 Dec 2023 23:45:44 +0330 Subject: [PATCH 9/9] add version --- .../EasyMicroservices.Logger.Log4net.csproj | 2 +- .../EasyMicroservices.Logger.DependencyInjection.csproj | 2 +- .../EasyMicroservices.Logger.Logary.csproj | 2 +- .../EasyMicroservices.Logger.Loupe.csproj | 2 +- .../EasyMicroservices.Logger.NLog.csproj | 2 +- .../EasyMicroservices.Logger.Sentry.csproj | 2 +- .../EasyMicroservices.Logger.Serilog.csproj | 2 +- .../EasyMicroservices.Logger/EasyMicroservices.Logger.csproj | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CSharp/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj b/src/CSharp/EasyMicroservices.Logger. Log4net/EasyMicroservices.Logger.Log4net.csproj index 403d05d..aaa74f1 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.5 + 0.0.0.6 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 01b79ee..ea5d1d8 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.5 + 0.0.0.6 logger wrapper EasyMicroservices@gmail.com log,logger,logging diff --git a/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj b/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj index 2fb35d6..f7384f6 100644 --- a/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Logary/EasyMicroservices.Logger.Logary.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.5 + 0.0.0.6 logger wrapper EasyMicroservices@gmail.com log,logger,logging,logary diff --git a/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj b/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj index f0fb861..761a69c 100644 --- a/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Loupe/EasyMicroservices.Logger.Loupe.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.5 + 0.0.0.6 logger wrapper EasyMicroservices@gmail.com log,logger,logging,loupe diff --git a/src/CSharp/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj b/src/CSharp/EasyMicroservices.Logger.NLog/EasyMicroservices.Logger.NLog.csproj index 3dbde58..3d7b3f9 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.5 + 0.0.0.6 logger wrapper EasyMicroservices@gmail.com log,logger,logging,nlog diff --git a/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj b/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj index 077cfdb..51ff1ae 100644 --- a/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj +++ b/src/CSharp/EasyMicroservices.Logger.Sentry/EasyMicroservices.Logger.Sentry.csproj @@ -17,7 +17,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.5 + 0.0.0.6 logger wrapper EasyMicroservices@gmail.com log,logger,logging,sentry diff --git a/src/CSharp/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj b/src/CSharp/EasyMicroservices.Logger.Serilog/EasyMicroservices.Logger.Serilog.csproj index b77339a..67524ff 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.5 + 0.0.0.6 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 ed94b90..85898a8 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.5 + 0.0.0.6 Logger and Auditing system EasyMicroservice@gmail.com logging,auditing