Closed overstartup closed 1 year ago
Try this
var okx = new OKX.Api.OKXRestApiClient(new OKX.Api.OKXRestApiClientOptions()
{
LogWriters = new List<Microsoft.Extensions.Logging.ILogger> { logger }, // logger -> your logger object
LogLevel = Microsoft.Extensions.Logging.LogLevel.Debug
});
Currently, the errors are showing in trace mode on vs.net log window. How I can change the configuration to log all errors in an external log file to check them in production?