开发者

How do I write to the application window log with MVC

I have a simple MVC appl开发者_StackOverflow社区ication that sometimes fails in production. I would like to write a message to the log that I can view with server manager. It seems like a simple thing to do but I've not found any reference to others doing it.

Can someone please help. I'm stuck "-(

Marie


http://msdn.microsoft.com/en-us/library/6w20x90k.aspx

System.Diagnostices.Eventlog.WriteEntry("Application", "your message here");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜