Solved

Operator's log file

Posted on 2006-07-19
8
256 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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