Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to store logs in local storage .

What I have tried:

How to Write Log in local Folder using Asp.Net or Azure?
Posted
Updated 8-Mar-16 19:23pm
Comments
Mehdi Gholam 9-Mar-16 1:01am    
...and what do you mean by log (database logs, error logs,...)?

1 solution

There are many ways to write a log in asp.net
- using Application_Error event in global.asax (Here you need to create the Logs_App and logs_Error folders in your project, It creates one log file on an hourly basis, one for Activities and one for Errors. check this[^]
- using Event Log, (use EventLog class and you can write log in system event log see this[^])
- Using a plain text file
- Using database
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900