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
.NET has this beautiful interface called ILogger from the Microsoft.Extensions.Logging package. It is an interface which is implemented by all the most famous loggers in C#. Moreover, it is natively supported by the Dependency Injection framework internal to .NET.
This way, each programmer has the ability to use your bot connecting his preferred logger and having your internal messages logged.
I think it would be a great improvement :)
The text was updated successfully, but these errors were encountered:
If you need to log client requests you can do it yourself using OnMakingApiRequest and OnApiResponseReceived events. They are async and have access to underlying HttpRequestMessage and HttpResponseMessage.
Hi,
.NET has this beautiful interface called
ILogger
from theMicrosoft.Extensions.Logging
package. It is an interface which is implemented by all the most famous loggers in C#. Moreover, it is natively supported by the Dependency Injection framework internal to .NET.This way, each programmer has the ability to use your bot connecting his preferred logger and having your internal messages logged.
I think it would be a great improvement :)
The text was updated successfully, but these errors were encountered: