<PackageReference Include="Serilog.Sinks.File" Version="7.0.1-dev-02315" />

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)