I'm task with writing a module that logs custom events in our application. I need to capture and log things like vistors, new registrations, company, dates... any tutorials or examples to get me started?
After reading your needs, as far as i know, you want to log some event and value in your application, i found a tutorial about how to log the exception message in the application, you also could log the event and value in it. For more details, please check
the following sample tutorials:
Create Simple Error Log Files using ASP.NET and C#:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
142 Points
480 Posts
Custom Event Log example or tutorial
Jan 29, 2018 10:38 PM|bthJ6|LINK
I'm task with writing a module that logs custom events in our application. I need to capture and log things like vistors, new registrations, company, dates... any tutorials or examples to get me started?
Contributor
6711 Points
2334 Posts
Re: Custom Event Log example or tutorial
Jan 30, 2018 08:53 AM|cnranasinghe|LINK
There are bunch of libraries available.
Contributor
6730 Points
2715 Posts
Re: Custom Event Log example or tutorial
Jan 30, 2018 09:59 AM|Eric Du|LINK
Hi bthJ6,
After reading your needs, as far as i know, you want to log some event and value in your application, i found a tutorial about how to log the exception message in the application, you also could log the event and value in it. For more details, please check the following sample tutorials:
Create Simple Error Log Files using ASP.NET and C#:
https://www.codeproject.com/Articles/2344/Create-Simple-Error-Log-Files-using-ASP-NET-and-C
Create simple Error Log Text File in ASP.Net using C# and VB.Net:
https://www.aspsnippets.com/Articles/Create-simple-Error-Log-Text-File-in-ASPNet-using-C-and-VBNet.aspx
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.