I see that you use ILogger to capture errors in some of you PowerBuilder.Data objects. I have a couple of questions. I am not sure how to use this method other than the method you show in one of your examples.
var factory = new LoggerFactory();
factory.AddConsole();
var logger = factory.CreateLogger("Logger");
I was able to get this to work, but I had to add the Nuget Package for "Microsoft.Extensions.Logging.Console".
Question #1
How would I implement logging errors to the Console in an alternative way since it gives the following warning?
'ConsoleLoggerExtensions.AddConsole(ILoggerFactory)' is obsolete: 'This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).'
Question #2
How would I capture errors in a non Console solution?
Forgive me for my ignorance. I have attempted to figure this out on my own, but have been unsuccessful. Code examples of usage for both questions would be appreciated.
Thanks for any help anyone can give me.
Bernie