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");
精彩评论