<PackageReference Include="Serilog.Sinks.File" Version="8.0.0-dev-02331" />

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.
public NullSink()

public void Emit(LogEvent logEvent)