How To Create A Log File

We start from the simple question that why we need to create a log file in our application. Simple is that log file keep record of all transaction of data or tells us about the action that we done in application. It help us to recover all previous data. I read many forum related to coding from where I get the question, is there any kind of built in function or .dll in C# that maintains log file. So answer to that question is that there is no such a function or .dll that handle this event. For this purpose I will suggest that y u not make your own program that help you to create a log file.

what is a log file contains?

A log file contains Form name,Date Time ,old values, new value and event name.

Event Name: e.g. you adds new values in database on save button click event, or your editing some values on edit button click event or your deleting any data from database.

You can store all these information in the flat file system and change file extension to make it unreadable. You can use .bat,.dat etc extension to hide file type.

I hope you like it so don’t forget to comment or give some suggestions to bring what you need.

For more tutorials click here.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger