Solved

Logging

Posted on 2006-06-21
2
255 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

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