public void UsingCode() { var sink = new MySink(); Log.Logger = new LoggerConfiguration() .WriteTo.Sink(sink) .CreateLogger(); SerilogConfigurator.Configure(); Configure.With() .DefaultBuilder(); Assert.IsNotEmpty(sink.LogEvents); }
public void UsingCode() { var sink = new MySink(); Log.Logger = new LoggerConfiguration() .WriteTo.Sink(sink) .CreateLogger(); SerilogConfigurator.Configure(); Configure.With() .DefaultBuilder(); Assert.IsNotEmpty(sink.LogEvents); }