Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Extensions/HttpClientBuilderExtension.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Http;

Expand Down
3 changes: 2 additions & 1 deletion Filters/CustomLoggingHttpMessageHandlerBuilderFilter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.Extensions.Http;

using Microsoft.Extensions.Logging;

namespace Netcorext.Logging.HttpClientLogger;

public class CustomLoggingHttpMessageHandlerBuilderFilter : IHttpMessageHandlerBuilderFilter
Expand Down
1 change: 1 addition & 0 deletions Handlers/CustomLoggingHttpMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Net;
using Microsoft.Extensions.Logging;
using Netcorext.Logging.HttpClientLogger.Internals;

namespace Netcorext.Logging.HttpClientLogger;
Expand Down
1 change: 1 addition & 0 deletions Handlers/CustomLoggingScopeHttpMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Net;
using Microsoft.Extensions.Logging;
using Netcorext.Logging.HttpClientLogger.Internals;

namespace Netcorext.Logging.HttpClientLogger;
Expand Down
17 changes: 15 additions & 2 deletions Netcorext.Logging.HttpClientLogger.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
Expand All @@ -20,13 +20,26 @@
<PackageProjectUrl>https://github.com/arenchen/Netcorext.Logging.HttpClientLogger</PackageProjectUrl>
<RepositoryUrl>https://github.com/arenchen/Netcorext.Logging.HttpClientLogger.git</RepositoryUrl>
<Description>Log HttpClient Request Body</Description>
<OutputType>Library</OutputType>
<Title>HttpClient Logger</Title>
<Version>1.1.0</Version>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>


<Target Name="IncludeProjectReferences" DependsOnTargets="ResolveReferences">
<ItemGroup>
<IncludeBuildOutput />
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths-&gt;WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
</ItemGroup>
</Target>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions Netcorext.Logging.HttpClientLogger.sln
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion Program.cs

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Log HttpClient Request Body