title: Setup.cs does not setup Serilog in MvvmCross WPF
body: <p>I'm using MvvmCross 7 and WPF Core and I'm trying to use Serilog as logger but I'm must missing something.
  I'm following the official guide <a href="https://www.mvvmcross.com/documentation/fundamentals/logging" rel="nofollow noreferrer">https://www.mvvmcross.com/documentation/fundamentals/logging</a> and this my setup.cs:</p>
  <pre><code>       public Setup(Dispatcher uiThreadDispatcher, IMvxWpfViewPresenter presenter)
      : base(uiThreadDispatcher, presenter)
          {
          }
          protected override IMvxApplication CreateApp()
          {
  
              return (IMvxApplication)new ReHUB.Core.App();
          }
  
          protected override MvxLogProviderType GetDefaultLogProviderType()
          {
  
              return MvxLogProviderType.Serilog;
          }
  
          protected override IMvxLogProvider CreateLogProvider()
          {
  
              string path = Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), &quot;my_log.txt&quot;);
  
              Log.Logger = new LoggerConfiguration()
                .MinimumLevel.Debug()
                .Enrich.FromLogContext()
                        .WriteTo.Logger(config =&gt; config
              .MinimumLevel.Verbose()
              .WriteTo.File(path))
              .WriteTo.File(path,
                    rollingInterval: RollingInterval.Day,
                    outputTemplate: &quot;{Timestamp:yyyy-MM-dd HH:mm:ss zzz} {myCustomVar} [{Level:u3}] {Message:lj}&quot;)
                .CreateLogger();
              return base.CreateLogProvider();
          }
  </code></pre>
  <p>Which run with no errors.</p>
  <p>My first perplexity is that setup.cs was not already in my project and so I had to create it manually, my second one is that if I put a print in it it will not be printed so I'm not sure if setup.cs is being executed (I guess not).</p>
  <p>I then inject it in the constructor of my viewmodel as</p>
  <pre><code>IMvxLog logger
  </code></pre>
  <p>and call it as</p>
  <pre><code>Log.Logger.Error(&quot;Mandrone&quot;);
  </code></pre>
  <p>But it does not log anything in my my_log.txt.</p>
  <p>What I am missing? My first clue is that something changed about setup.cs since MvvmCross 7 but I cant find the answer on internet.</p>