如何使用 ASP.NET 运行时的详细调试消息来运行 ASP.NET 应用程序
如何配置 ASP.NET 应用程序以写入 ASP.NET 引擎本身正在执行的操作的详细日志消息? 我得到的
<trace enabled="true"
pageOutput="false"
requestLimit="10000"
writeToDiagnosticsTrace="true"/>
只是
[2488] aspx.page: Begin PreInit
[2488] aspx.page: End PreInit
[2488] aspx.page: Begin Init
[2488] Unhandled Execution Error: -- Object reference not set to an instance of an object.:
at ...
...
[2488] aspx.page: Begin PreInit
[2488] aspx.page: End PreInit
[2488] aspx.page: Begin Init
[2488] aspx.page: End Init
[2488] aspx.page: Begin InitComplete
[2488] aspx.page: End InitComplete
[2488] aspx.page: Begin PreLoad
[2488] aspx.page: End PreLoad
[2488] aspx.page: Begin Load
[2488] aspx.page: End Load
[2488] aspx.page: Begin LoadComplete
[2488] aspx.page: End LoadComplete
[2488] aspx.page: Begin PreRender
[2488] aspx.page: End PreRender
[2488] aspx.page: Begin PreRenderComplete
[2488] aspx.page: End PreRenderComplete
[2488] aspx.page: Begin SaveState
[2488] aspx.page: End SaveState
[2488] aspx.page: Begin SaveStateComplete
[2488] aspx.page: End SaveStateComplete
[2488] aspx.page: Begin Render
[2488] aspx.page: End Render
有没有办法变得更冗长? application_folder/logs/ 文件的详细级别如何?
How do I configure an ASP.NET application to write verbose log messages of what ASP.NET engine itself is doing? What I get with
<trace enabled="true"
pageOutput="false"
requestLimit="10000"
writeToDiagnosticsTrace="true"/>
is just
[2488] aspx.page: Begin PreInit
[2488] aspx.page: End PreInit
[2488] aspx.page: Begin Init
[2488] Unhandled Execution Error: -- Object reference not set to an instance of an object.:
at ...
...
[2488] aspx.page: Begin PreInit
[2488] aspx.page: End PreInit
[2488] aspx.page: Begin Init
[2488] aspx.page: End Init
[2488] aspx.page: Begin InitComplete
[2488] aspx.page: End InitComplete
[2488] aspx.page: Begin PreLoad
[2488] aspx.page: End PreLoad
[2488] aspx.page: Begin Load
[2488] aspx.page: End Load
[2488] aspx.page: Begin LoadComplete
[2488] aspx.page: End LoadComplete
[2488] aspx.page: Begin PreRender
[2488] aspx.page: End PreRender
[2488] aspx.page: Begin PreRenderComplete
[2488] aspx.page: End PreRenderComplete
[2488] aspx.page: Begin SaveState
[2488] aspx.page: End SaveState
[2488] aspx.page: Begin SaveStateComplete
[2488] aspx.page: End SaveStateComplete
[2488] aspx.page: Begin Render
[2488] aspx.page: End Render
Is there a way to get more verbosity?
What's about the verbosity level of application_folder/logs/ files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ELMAH 为您提供了大量详细信息,并且很容易添加到您的 asp.net 应用程序中
ELMAH gives you a lot of detail and is very easy to add to your asp.net application