你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FileSystemHttpLogsConfig 类

定义

Http 记录到文件系统配置。

public class FileSystemHttpLogsConfig
type FileSystemHttpLogsConfig = class
Public Class FileSystemHttpLogsConfig
继承
FileSystemHttpLogsConfig

构造函数

FileSystemHttpLogsConfig()

初始化 FileSystemHttpLogsConfig 类的新实例。

FileSystemHttpLogsConfig(Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>)

初始化 FileSystemHttpLogsConfig 类的新实例。

属性

Enabled

如果启用配置,则获取或设置 true;如果禁用配置,则获取 false;如果未设置配置,则获取 null。

RetentionInDays

获取或设置保留期(以天为单位)。 删除早于 X 天的文件。 0 或更低表示不保留。

RetentionInMb

获取或设置 http 日志文件可以使用的最大大小(以 MB 为单位)。 到达时,将删除旧日志文件,以便为新日志文件提供空间。 值的范围可以是 25 到 100。

方法

Validate()

验证 对象。

适用于