开发者

Glimpse and RedirectToAction

I am trying to follow Scott Hanselman's example on using glimpse to trace an ASP.NET MVC 3 application.

Public Function SomeAction(id As Integer) As ActionResult
    Dim traceid = Guid.NewGuid.ToString

    Trace.TraceInformation(traceid & " " & 
        DateTime.Now.ToString("HH:mm:ss:fffffff") & " action start")

    ...

    Trace.TraceInformation(traceid & " " & 
        DateTime.Now.ToString("HH:mm:ss:fffffff") & " some other traces")

    Return RedirectToAction("AnotherAction", New With {.id = id})
End Function

As you can see, in my case, at the end of the function, I redirect to another action and in "AnotherAction", glimpse doesn't show the traces that I have written during "SomeAction".

Is it possible to see the traces that I wrote 开发者_开发百科to the action before redirect with glimpse?

BTW glimpse v.0.82


Endy,

You can view past requests using Glimpse's remote tab.

Click the remote tab, and select the "Launch" link on the right. This will then show you the list of requests made from that client over time.

From that listing you can then click the "Launch" link for a given request to view all of the Glimpse information (including logging) for that past request. This is noted in Glimpse by changing URL changing and the string "(Remote)" showing up in the top left corner/status area.

We have been working on our documentation and there should be more information available about this tab very soon.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜