From 2ee3c33705b9f252e6fd6ba70b3a9188cc61e7e2 Mon Sep 17 00:00:00 2001 From: Carlin Scott Date: Thu, 27 Jul 2023 14:12:11 -0700 Subject: [PATCH 1/2] publish as netstandard2.0 package --- Extensions/HttpClientBuilderExtension.cs | 1 + ...mLoggingHttpMessageHandlerBuilderFilter.cs | 3 ++- Handlers/CustomLoggingHttpMessageHandler.cs | 1 + .../CustomLoggingScopeHttpMessageHandler.cs | 1 + Netcorext.Logging.HttpClientLogger.csproj | 17 +++++++++++-- Netcorext.Logging.HttpClientLogger.sln | 25 +++++++++++++++++++ Program.cs | 1 - 7 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 Netcorext.Logging.HttpClientLogger.sln delete mode 100644 Program.cs diff --git a/Extensions/HttpClientBuilderExtension.cs b/Extensions/HttpClientBuilderExtension.cs index cb5b2f5..535d80a 100644 --- a/Extensions/HttpClientBuilderExtension.cs +++ b/Extensions/HttpClientBuilderExtension.cs @@ -1,3 +1,4 @@ +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Http; diff --git a/Filters/CustomLoggingHttpMessageHandlerBuilderFilter.cs b/Filters/CustomLoggingHttpMessageHandlerBuilderFilter.cs index 7766764..2f2d6a7 100644 --- a/Filters/CustomLoggingHttpMessageHandlerBuilderFilter.cs +++ b/Filters/CustomLoggingHttpMessageHandlerBuilderFilter.cs @@ -1,5 +1,6 @@ using Microsoft.Extensions.Http; - +using Microsoft.Extensions.Logging; + namespace Netcorext.Logging.HttpClientLogger; public class CustomLoggingHttpMessageHandlerBuilderFilter : IHttpMessageHandlerBuilderFilter diff --git a/Handlers/CustomLoggingHttpMessageHandler.cs b/Handlers/CustomLoggingHttpMessageHandler.cs index f68e5a7..635e2f3 100644 --- a/Handlers/CustomLoggingHttpMessageHandler.cs +++ b/Handlers/CustomLoggingHttpMessageHandler.cs @@ -1,4 +1,5 @@ using System.Net; +using Microsoft.Extensions.Logging; using Netcorext.Logging.HttpClientLogger.Internals; namespace Netcorext.Logging.HttpClientLogger; diff --git a/Handlers/CustomLoggingScopeHttpMessageHandler.cs b/Handlers/CustomLoggingScopeHttpMessageHandler.cs index 752d123..4e240a1 100644 --- a/Handlers/CustomLoggingScopeHttpMessageHandler.cs +++ b/Handlers/CustomLoggingScopeHttpMessageHandler.cs @@ -1,4 +1,5 @@ using System.Net; +using Microsoft.Extensions.Logging; using Netcorext.Logging.HttpClientLogger.Internals; namespace Netcorext.Logging.HttpClientLogger; diff --git a/Netcorext.Logging.HttpClientLogger.csproj b/Netcorext.Logging.HttpClientLogger.csproj index 41190cc..9849e18 100644 --- a/Netcorext.Logging.HttpClientLogger.csproj +++ b/Netcorext.Logging.HttpClientLogger.csproj @@ -1,7 +1,7 @@ - + - net6.0 + netstandard2.0 latest 1 0 @@ -20,8 +20,17 @@ https://github.com/arenchen/Netcorext.Logging.HttpClientLogger https://github.com/arenchen/Netcorext.Logging.HttpClientLogger.git Log HttpClient Request Body + Library + HttpClient Logger + 1.1.0 + + full + true + + + @@ -29,4 +38,8 @@ + + + + \ No newline at end of file diff --git a/Netcorext.Logging.HttpClientLogger.sln b/Netcorext.Logging.HttpClientLogger.sln new file mode 100644 index 0000000..0abad5f --- /dev/null +++ b/Netcorext.Logging.HttpClientLogger.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33829.357 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Netcorext.Logging.HttpClientLogger", "Netcorext.Logging.HttpClientLogger.csproj", "{177B476E-88CB-48FC-89B0-2DCAFB564EDA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {177B476E-88CB-48FC-89B0-2DCAFB564EDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {177B476E-88CB-48FC-89B0-2DCAFB564EDA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {177B476E-88CB-48FC-89B0-2DCAFB564EDA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {177B476E-88CB-48FC-89B0-2DCAFB564EDA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {540BAA17-BB93-42B6-B580-D2E0D0A9FA96} + EndGlobalSection +EndGlobal diff --git a/Program.cs b/Program.cs deleted file mode 100644 index 5c9c5e7..0000000 --- a/Program.cs +++ /dev/null @@ -1 +0,0 @@ -void Main() { } \ No newline at end of file From 51dbd1271b338dba31d551ab54f94966bd11ff83 Mon Sep 17 00:00:00 2001 From: Carlin Scott Date: Sat, 9 Mar 2024 16:21:25 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac2708c..7d91a45 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Netcorext.Logging.HttpClientLogger +Deprecated by [Microsoft.Extensions.Http.Diagnostics](https://github.com/dotnet/extensions/blob/c80574bf8b291be1a819b46df078aaa2594906c0/src/Libraries/Microsoft.Extensions.Http.Diagnostics/README.md) + [![Nuget](https://img.shields.io/nuget/v/Netcorext.Logging.HttpClientLogger)](https://www.nuget.org/packages/Netcorext.Logging.HttpClientLogger) -Log HttpClient Request Body \ No newline at end of file +Log HttpClient Request Body