开发者

asp.net web app - writing data to access or error logs?

开发者 https://www.devze.com 2022-12-26 10:57 出处:网络
I\'m looking for a quick way to log some data - I seem to remember a way to write to the access log, similar to System.Out.Println() but I can\'t seem to remember how to do it.

I'm looking for a quick way to log some data - I seem to remember a way to write to the access log, similar to System.Out.Println() but I can't seem to remember how to do it.

I can't attach a debugger, nor can I add additional information to the web app via Response.Write().

Is there a simple way - a single statement with no configuration changes would be ideal - to writ开发者_JS百科e to either the error or access logs?


This is a quick way...

Debug.Write("my data to read....");

and read it in real time using sysinterlans DebugView.

0

精彩评论

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