开发者

How do I write to the application window log with MVC

开发者 https://www.devze.com 2023-02-14 05:35 出处:网络
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

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

精彩评论

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

关注公众号