Solved

Logging

Posted on 2006-06-21
2
247 Views
Last Modified: 2010-04-23
I have a file watcher service which copies files to a specified directory, I want to log each file that is copied. I was going to do this via XML, however a text file may be more appropriate. The file may be used in the future to search for specific files, which way is generally regarded as best? Are there any good examples of this type of logging?
0
Comment
Question by:rocky050371
2 Comments
 
LVL 6

Accepted Solution

by:
Nandakumar Sakthivel earned 500 total points
ID: 16950592
Hi,
  i think you can use xml file.so that you can convert it to a dataset and show the user whenever needed
  for more info abt usiing xml file you can see
     http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21888917.html

Thanks,
Nanda
0
 
LVL 6

Expert Comment

by:cubixSoftware
ID: 16950748
Hi

I have had to make these decisions before in various products I have developed and have found the best method is to write out to a database. However if that was not an option I started down the text file road but very quickly moved across to XML as a more flexible option.

Things to remember will be

1. One log file or many log files to try to keep the file size down
2. Think about speed of throughput and you might want to open a second thread to process the logging as efficiently as possible


HTH
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help parsing JSON in my VB.Net application 4 42
Help with sorting data in Listbox using VB.NET 3 53
Variable Event ? 3 22
Web Form VB.Net  import CSV 4 24
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

912 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

21 Experts available now in Live!

Get 1:1 Help Now