You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Override the default object reflection for System.Net.WebException:
NLog.LogManager.Setup().SetupSerialization(s =>s.RegisterObjectTransformation<System.Net.WebException>(ex =>new{Type=ex.GetType().ToString(),Message=ex.Message,StackTrace=ex.StackTrace,Source=ex.Source,InnerException=ex.InnerException,Status=ex.Status,Response=ex.Response.ToString(),// Call your custom method to render stream as string}));
Skip default object reflection for ReadOnlyMemory<byte>: