1

I am trying to log the entire exception to the IIS log in the following way:

   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));
    }

But the log only shows '...'.

Is there any limit in terms of how much data can be written to the log ?

Sid
  • 77
  • 1
  • 9

1 Answers1

0

One thing to try: Make sure the advanced logging extension is enabled.

As per Append custom value to IIS logs from ASP.NET.

Community
  • 1
  • 1
Meligy
  • 35,654
  • 11
  • 85
  • 109