Delen via


ConsoleLoggerOptions Class

Definition

Options for a Microsoft.Extensions.Logging.Console.ConsoleLogger.

public ref class ConsoleLoggerOptions
public class ConsoleLoggerOptions
type ConsoleLoggerOptions = class
Public Class ConsoleLoggerOptions
Inheritance
ConsoleLoggerOptions

Constructors

ConsoleLoggerOptions()

Properties

DisableColors
Obsolete.

Disables colors when true.

Format
Obsolete.

Gets or sets log message format. Defaults to Default.

FormatterName

Name of the log message formatter to use. Defaults to simple.

IncludeScopes
Obsolete.

Includes scopes when true.

LogToStandardErrorThreshold

Gets or sets value indicating the minimum level of messages that would get written to Console.Error.

MaxQueueLength

Gets or sets the maximum number of enqueued messages. Defaults to 2500.

QueueFullMode

Gets or sets the desired console logger behavior when the queue becomes full. Defaults to Wait.

TimestampFormat
Obsolete.

Gets or sets format string used to format timestamp in logging messages. Defaults to null.

UseUtcTimestamp
Obsolete.

Gets or sets indication whether or not UTC timezone should be used to format timestamps in logging messages. Defaults to false.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to