Open doug-ferris-mondo opened 4 years ago
Hi @doug-ferris,
Thanks for the feedback.
This request has already been put in our backlog, which will be investigated soon. Please stay tuned and come back later to check.
I was going to create an issue regarding the use of a custom internal ILogger
in the XRay middleware:
I was really surprised when I found out you were not using the native interface from Microsoft.Extensions.Logging
in there.
Log4net is a very legacy logging library in the .Net ecosystem at this point and would be a poor choice if picking one library was even needed. The fact that it is a static
instance is also really bad for any integrations. You could just inject ILogger<T>
in the middleware constructor instead.
Do you have any updates on this @lupengamzn ?
At the moment, based on the README logging on .NET Core only supports log4net.
Based on the github page for log4net:
Given this is no longer being maintained, can this be moved to a more generic logging framework?
Can I suggest finding some way to support a generic ILogger from Microsoft.Extensions.Logging? Even if this means implementing a logger rather than having a logger injected into it, just feels like a nicer long-term option.