且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MvvmCross 7 如何在 WPF (.net Core 3.1) 应用程序中设置 Serilog

更新时间:2023-02-09 09:56:27

答案就是 App.xaml.cs 中的那一行:

The answer is that line in App.xaml.cs:

MvxWpfSetupSingleton.EnsureSingletonAvailable(Dispatcher, MainWindow);

它初始化"Setup.cs 和同样的记录器.

It 'initializes' the Setup.cs and the same the logger.