<PackageReference Include="Serilog.Sinks.Console" Version="5.1.0-dev-00943" />

Serilog.Sinks.SystemConsole.Themes.ConsoleTheme

public abstract class ConsoleTheme
The base class for styled terminal output.
public static ConsoleTheme None { get; }

No styling applied.

public abstract bool CanBuffer { get; }

True if styling applied by the theme is written into the output, and can thus be buffered and measured.

protected abstract int ResetCharCount { get; }

The number of characters written by the Reset method.

protected ConsoleTheme()

public abstract void Reset(TextWriter output)

Reset the output to un-styled colors.

public abstract int Set(TextWriter output, ConsoleThemeStyle style)

Begin a span of text in the specified style.