MAUI configuration - missing something #31
-
I'm clearly missing something with how to set things up for MAUI. I'm using Prism for my MVVC and IoC/DI. I can see how adding logging via the builder works, with the following code:
But am stuck on what I then register with my Prism RegisterTypes method: private static void RegisterTypes(IContainerRegistry containerRegistry)
So that I can then resolve the logger later. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
MetroLog maui uses the Microsoft logging extensions abstraction. So maybe search for that terms + prism on google I'm sure you will have some hit. Or you can just use the standard configuration and get the loggers through LoggerFactory (on my part I don't like inject loggers, seems overkill to me :) |
Beta Was this translation helpful? Give feedback.
MetroLog maui uses the Microsoft logging extensions abstraction. So maybe search for that terms + prism on google I'm sure you will have some hit. Or you can just use the standard configuration and get the loggers through LoggerFactory (on my part I don't like inject loggers, seems overkill to me :)