AzureFileLoggerOptions 类

定义

Azure 诊断文件日志记录的选项。Options for Azure diagnostics file logging.

public ref class AzureFileLoggerOptions : Microsoft::Extensions::Logging::AzureAppServices::Internal::BatchingLoggerOptions
public ref class AzureFileLoggerOptions : Microsoft::Extensions::Logging::AzureAppServices::BatchingLoggerOptions
public class AzureFileLoggerOptions : Microsoft.Extensions.Logging.AzureAppServices.Internal.BatchingLoggerOptions
public class AzureFileLoggerOptions : Microsoft.Extensions.Logging.AzureAppServices.BatchingLoggerOptions
type AzureFileLoggerOptions = class
    inherit BatchingLoggerOptions
Public Class AzureFileLoggerOptions
Inherits BatchingLoggerOptions
继承
Microsoft.Extensions.Logging.AzureAppServices.Internal.BatchingLoggerOptions
AzureFileLoggerOptions
继承
AzureFileLoggerOptions

构造函数

AzureFileLoggerOptions()

属性

BackgroundQueueSize

获取或设置后台日志消息队列的最大大小,或设置为 null,表示无限制。Gets or sets the maximum size of the background log message queue or null for no limit. 达到最大队列大小后,日志事件接收器将开始阻止。After maximum queue size is reached log event sink would start blocking. 默认为 1000Defaults to 1000.

(继承自 BatchingLoggerOptions)
BatchSize

获取或设置要包含在单个批处理中的最大事件数,或设置为 null,表示无限制。Gets or sets a maximum number of events to include in a single batch or null for no limit.

(继承自 BatchingLoggerOptions)
FileName

获取或设置一个字符串,该字符串表示用于存储日志记录信息的文件名的前缀。Gets or sets a string representing the prefix of the file name used to store the logging information. 在给定值之后,将以 YYYYMMDD 格式添加当前日期。The current date, in the format YYYYMMDD will be added after the given value. 默认为 diagnostics-.Defaults to diagnostics-.

FileSizeLimit

获取或设置表示最大日志大小(以字节为单位)的正值,或者设置为 null,表示无限制。Gets or sets a strictly positive value representing the maximum log size in bytes or null for no limit. 日志已满后,将不再追加消息。Once the log is full, no more messages will be appended. 默认为 10MBDefaults to 10MB.

FlushPeriod

获取或设置一个时间段,在该时间段后日志将刷新到存储。Gets or sets the period after which logs will be flushed to the store.

(继承自 BatchingLoggerOptions)
IncludeScopes

获取或设置一个值,该值指示消息中是否应包含范围。Gets or sets a value indicating whether scopes should be included in the message. 默认为 falseDefaults to false.

(继承自 BatchingLoggerOptions)
IsEnabled

获取或设置一个值,该值指示记录器是否接受写入内容并让其进入队列。Gets or sets value indicating if logger accepts and queues writes.

(继承自 BatchingLoggerOptions)
RetainedFileCountLimit

获取或设置表示最大保留文件计数的正值,或者设置为 null,表示没有限制。Gets or sets a strictly positive value representing the maximum retained file count or null for no limit. 默认为 2Defaults to 2.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于