NetCordDev / NetCord

The modern and fully customizable C# Discord library.
https://netcord.dev
MIT License
65 stars 10 forks source link

Logging via a logger #29

Closed KubaZ2 closed 2 months ago

KubaZ2 commented 2 months ago

Description

Preferably IGatewayLogger and IRestLogger.

To allow easy configuration, the logger used for the GatewayClient would implement IRestLogger too. In that case, when RestClientConfiguration passed in the GatewayClientConfiguration doesn't specify the IRestLogger explicitly (it is null), the logger used for the gateway is used.

KubaZ2 commented 2 months ago

quoting me from the NetCord server

actually I do think that this feature wouldn't be good as somebody may not wish to log to console by default and as hosting extensions provide logging by default that doesn't involve users to implement event handlers, I think logging by events would stay