【问题标题】:IIS Logs do not show the message loggedIIS 日志不显示记录的消息
【发布时间】:2014-03-31 06:15:10
【问题描述】:

我正在尝试通过以下方式将整个异常记录到 IIS 日志中:

   public void OnTransientFaultOccurred(object sender, RetryingEventArgs e)
    {
        _httpResponse.AppendToLog(string.Format("RetryCount:{0}", e.CurrentRetryCount));
        _httpResponse.AppendToLog(string.Format("NextRetryIn:{0}ms", e.Delay.TotalMilliseconds));
        _httpResponse.AppendToLog(string.Format("Exception:{0}",e.LastException));
    }

但日志只显示'...'。

对于可以写入日志的数据量有限制吗?

【问题讨论】:

    标签: asp.net iis iis-logs


    【解决方案1】:

    要尝试的一件事:确保启用了高级日志记录扩展。

    根据Append custom value to IIS logs from ASP.NET。

    【讨论】:

    • 即使在启用高级日志记录后,我也会在日志中看到“...”。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-08
    • 2015-05-21
    • 2016-02-20
    相关资源
    最近更新 更多