共用方式為


ConsoleFormatter Class

Definition

Allows custom log messages formatting.

public ref class ConsoleFormatter abstract
public abstract class ConsoleFormatter
type ConsoleFormatter = class
Public MustInherit 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