You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Refit is used with a logging library like serilog that logs the context of a log message (typically a class where log originated) the generated Refit HttpClient name causes log to be hard to read as its very long.
An example of the generated name: System.Net.Http.HttpClient.Refit.Implementation.Generated+SerilogRefiReproControllersIApi, SerilogRefiRepro, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
The implementation is in
where its clear that asembly full name is appended.
I asked for reasoning of such naming in discussion #1464, but got no answer.
Related issue in serilog that resulted in this feature request serilog/serilog#1793
Describe the solution you'd like
The generated class name would be simlified - no asembly full name would be present.
The text was updated successfully, but these errors were encountered:
I'd like to know if there's a way to stop the log with this logger name
I use a custom DelegatingHandler as LogginHandler, and wont require the logger of System.Net.Http.HttpClient.Refit.Implementation.*
I tried to filer the name but it just always log { "time": "2023-09-05 17:52:32.4068", "level": "INFO", "logger": "System.Net.Http.HttpClient.Refit.Implementation.Generated+GtrPlatformExtendApisIConsultantApiClient, Gtr.Platform.ExtendApis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.LogicalHandler", "message": "End processing HTTP request after 73.0084ms - 200" } { "time": "2023-09-05 17:52:32.4068", "level": "INFO", "logger": "System.Net.Http.HttpClient.Refit.Implementation.Generated+GtrPlatformExtendApisIConsultantApiClient, Gtr.Platform.ExtendApis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.ClientHandler", "message": "Received HTTP response headers after 32.7993ms - 200" }
When Refit is used with a logging library like serilog that logs the context of a log message (typically a class where log originated) the generated Refit HttpClient name causes log to be hard to read as its very long.
An example of the generated name:
System.Net.Http.HttpClient.Refit.Implementation.Generated+SerilogRefiReproControllersIApi, SerilogRefiRepro, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
The implementation is in
refit/Refit/UniqueName.cs
Line 49 in 246ee8d
I asked for reasoning of such naming in discussion #1464, but got no answer.
Related issue in serilog that resulted in this feature request serilog/serilog#1793
Describe the solution you'd like
The generated class name would be simlified - no asembly full name would be present.
The text was updated successfully, but these errors were encountered: