You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'd like to use Serilog with Prism 8 in my WPF application. To do this I'm creating a plugin with my ISerilogLogger that inherit from IAggregableLogger for using with multiples loggers.
In my App.xaml.cs I resolve SerilogLogger concrete type and I add to AggregateLogger by AddLoggers method.
In my module get IAggregateLogger interface by constructor injection and I get my logger but I can only access to ILogger methods because I can't get my own ISerilogLogger (AddLoggers adds ILogger interface). So is this the right approach to integrate other loggers implementations in Prism 8? Can you provide an example to explain the right approach to use?
Thank you
Luca
The text was updated successfully, but these errors were encountered:
Hello, I'd like to use Serilog with Prism 8 in my WPF application. To do this I'm creating a plugin with my ISerilogLogger that inherit from IAggregableLogger for using with multiples loggers.
In my App.xaml.cs I resolve SerilogLogger concrete type and I add to AggregateLogger by AddLoggers method.
In my module get IAggregateLogger interface by constructor injection and I get my logger but I can only access to ILogger methods because I can't get my own ISerilogLogger (AddLoggers adds ILogger interface). So is this the right approach to integrate other loggers implementations in Prism 8? Can you provide an example to explain the right approach to use?
Thank you
Luca
The text was updated successfully, but these errors were encountered: