Share via


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

IWithDiagnosticLogging<FluentT>.WithContainerLoggingEnabled 方法

定义

重载

WithContainerLoggingEnabled()

指定适用于 Linux Web 应用的容器日志记录的配置。 日志将存储在文件系统上,最大为 35 MB。

WithContainerLoggingEnabled(Int32, Int32)

指定适用于 Linux Web 应用的容器日志记录的配置。

WithContainerLoggingEnabled()

指定适用于 Linux Web 应用的容器日志记录的配置。 日志将存储在文件系统上,最大为 35 MB。

public Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<FluentT> WithContainerLoggingEnabled ();
abstract member WithContainerLoggingEnabled : unit -> Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<'FluentT>
Public Function WithContainerLoggingEnabled () As IUpdate(Of FluentT)

返回

适用于

WithContainerLoggingEnabled(Int32, Int32)

指定适用于 Linux Web 应用的容器日志记录的配置。

public Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<FluentT> WithContainerLoggingEnabled (int quotaInMB, int retentionDays);
abstract member WithContainerLoggingEnabled : int * int -> Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<'FluentT>
Public Function WithContainerLoggingEnabled (quotaInMB As Integer, retentionDays As Integer) As IUpdate(Of FluentT)

参数

quotaInMB
Int32

限制应用诊断日志使用文件系统的限制。 值的范围可以是 25 MB 和 100 MB。

retentionDays
Int32

可用日志的最长天数。

返回

适用于