Solved

Logging

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

19 Experts available now in Live!

Get 1:1 Help Now