Event Logging from Web Services and WebForms
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Greetings All! My question is (i think pretty straight forward) mainly about logging errors from a web services or a webform. What I would like to do is write to the event log from a web service and/or webform. I have read some of the articles on codeproject on how to do this.. but achieved zero success .. Can anyone help? To further explain what I want to do.. An example web method : [WebMethod] public void someMethod() { try { // soem random code that might throw and exception } catch(Exception e) { // write to event log here } } This is just one example.. There are more ofcourse.. But again if anyone can shed some light on this subject it would be greatly appreciated! Regards, Daniel Rodriguez