I have a shared Code between my backend and my frontend(WPF), where be backend currently uses NReco.Logging.File which is compatible with Microsoft.Extensions.Logging.ILogger. But in the fronend, I use NLog. Now I want to provide a NLog.Logger, every time when a ILogger is requested using Constructor. Therefore I need to find a solution to setup the Prism.DI accordingly.
Currently I found the NLog.Extension.Hosting and NLog.Extensions.Logging, which registers NLog for Microsoft.Extension.Hosting. https://github.com/NLog/NLog.Extensions.Logging/tree/master Additionally I found the following Entry, for registering Serilog as ILog Provider: Resolve generic Microsoft.Extensions.Logging.ILogger<T> with Unity - get InvalidCastException
Is there any way to register NLog to Prism Unity to provide as Microsoft.Extension.Logging.ILogger.