Прочетете на английски

Споделяне чрез


ConsoleFormatter Class

Definition

Allows custom log messages formatting.

C#
public abstract class ConsoleFormatter
Inheritance
ConsoleFormatter

Constructors

ConsoleFormatter(String)

Initializes a new instance of ConsoleFormatter.

Properties

Name

Gets the name associated with the console log formatter.

Methods

Write<TState>(LogEntry<TState>, IExternalScopeProvider, TextWriter)

Writes the log message to the specified TextWriter.

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)