Solved

Operator's log file

Posted on 2006-07-19
8
253 Views
Last Modified: 2010-05-18
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.
0
Comment
Question by:wongke9622
  • 3
  • 3
8 Comments
 
LVL 14

Expert Comment

by:ptakja
ID: 17143415
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
 

Author Comment

by:wongke9622
ID: 17143500
thanks ptakja...is there like a sample code with you
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 17144797
Hi wongke9622,

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

Cheers!
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:wongke9622
ID: 17145136
Thanks emoreau
0
 

Author Comment

by:wongke9622
ID: 17221169
Thanks guys , I created my own class to read and write log files into the specified directory
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 17223235
How will you close this question?
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 17377513
I think I deserve some points here!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now