<PackageReference Include="Serilog" Version="4.3.2-dev-02433" />

Serilog.Debugging.SelfLog

public static class SelfLog
A simple source of information generated by Serilog itself, for example when exceptions are thrown and caught internally.

An ILoggingFailureListener that writes diagnostic information to SelfLog. Sinks that support failure listeners should use this instance by default.

public static void Disable()

Clear the output mechanism and disable self-log events.

public static void Enable(TextWriter output)

Set the output mechanism for self-log messages.

public static void Enable(Action<string> output)

Set the output mechanism for self-log messages.

public static void WriteLine(string format, object arg0 = null, object arg1 = null, object arg2 = null)

Write a message to the self-log.