Operator's log file

Hello everyone,
                       To get down straight to my question, which would be the best way to create operator's log in vb.net application where I could keep track of who did what by going through the log file ? Would that be by creating a global function and then inserting data into text file whenever an event occurs ? Thanks in advance.
wongke9622Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
I think I deserve some points here!
0
 
ptakjaCommented:
Yup. I would create a class that exposes various log methods that allows you to control the content. Then in the various event handlers you make calls into your class object to write the log entry.
0
 
wongke9622Author Commented:
thanks ptakja...is there like a sample code with you
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
Éric MoreauSenior .Net ConsultantCommented:
Hi wongke9622,

Check an article I wrote in November 2003 from http://emoreau.s2i.com/. It is about TraceListeners.

Cheers!
0
 
wongke9622Author Commented:
Thanks emoreau
0
 
wongke9622Author Commented:
Thanks guys , I created my own class to read and write log files into the specified directory
0
 
Éric MoreauSenior .Net ConsultantCommented:
How will you close this question?
0
All Courses

From novice to tech pro — start learning today.