Serilog.Sinks.File.NullSink sealed class NullSink : ILogEventSink An instance of this sink may be substituted when an instance of the FileSink is unable to be constructed. Documentation Code public NullSink() public void Emit(LogEvent logEvent)