Closed pduer closed 4 years ago
Can you modify your logger to implement ShareFile.Api.Client.Logging.ILogger
?
You could then pass in your logger like configuration.Logger = customLogger;
Alternatively, you could write some wrapper that implements ShareFile.Api.Client.Logging.ILogger
and proxies calls to your custom logger.
Then pass it in like above, configuration.Logger = wrapper;
Yeah, after I typed this out I just caught on to that. I need to implment the Sharefile ILogger.
I did that and it works good.
I see how the line: configuration.Logger = new DefaultLoggingProvider(); works
But what if I want to provide my standard logger that I have DI to the Sharefile Client?