<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="11.0.0" />

Microsoft.Extensions.Logging.Console.ConsoleFormatter

public abstract class ConsoleFormatter
Allows custom log messages formatting.
public string Name { get; }

Gets the name associated with the console log formatter.

protected ConsoleFormatter(string name)

Initializes a new instance of ConsoleFormatter.

public abstract void Write<TState>(LogEntry logEntry, IExternalScopeProvider scopeProvider, TextWriter textWriter)