一瞥和重定向到操作
我正在尝试遵循 Scott Hanselman 的示例 使用glimpse 跟踪 ASP.NET MVC 3应用。
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
正如您所看到的,在我的例子中,在函数末尾,我重定向到另一个操作,并且在“AnotherAction”中,一瞥不会显示我在“SomeAction”期间编写的痕迹。
是否可以看到我在重定向之前写入操作的痕迹?
顺便说一句,一瞥 v.0.82
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Endy,
您可以使用 Glimpse 的远程选项卡查看过去的请求。
单击远程选项卡,然后选择右侧的“启动”链接。然后,这将显示该客户随时间推移发出的请求列表。
然后,您可以从该列表中单击给定请求的“启动”链接,以查看该过去请求的所有 Glimpse 信息(包括日志记录)。在 Glimpse 中,通过更改 URL 更改以及左上角/状态区域中显示的字符串“(Remote)”来注意到这一点。
我们一直在编写文档,很快就会提供有关此选项卡的更多信息。
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.