Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A statusbar and a logging window). The problem is that the CreateLogger() function gets called so early in the bootstrapping process, that I cant resolve a IEventAggregator.
What’s the correct way of logging to GUI with the all available ILoggerFacade?
Thanks,
Mathieu
The shell is created very late in the bootstrapping process, so there won’t even be a window to show the initial log messages coming from the bootstrapper.
If you want to log any later messages to the GUI, you can override the
ConfigureContainermethod and do something like thiswhere
MyLoggerAdapteris the type of the logger you’ve created in yourCreateLoggeroverride.Then in your implementation of
MyLoggerAdapteryou can have