Long ago, I made a little project wherein I hoped to learn about Castle Windsor. I put it aside (before really learning all that much) for quite some time. I just opened it up again now, and updated NuGet packages, and started getting a warning CS0618:
'LoggingFacility.UseNLog()' is obsolete: 'A logger factory implementation type should be provided via LogUsing(), this will be removed in the future.'
I've googled based on this, but it's still not clear to me what I am supposed to do in order to replace the now-obsolete call, which is:
container.AddFacility<LoggingFacility>(f => f.UseNLog());
Any help would be appreciated. Thanks!
Oooh, I think I have stumbled upon the answer. Haven't tested it yet, but the very least, the following does not give any compiler warning:
container.AddFacility<LoggingFacility>(f => f.LogUsing<NLogFactory>());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With