Solved

Operator's log file

Posted on 2006-07-19
8
255 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 70

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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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 70

Expert Comment

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

Accepted Solution

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

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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