【发布时间】: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));
}
但日志只显示'...'。
对于可以写入日志的数据量有限制吗?
【问题讨论】: