Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Logging

Posted on 2006-06-21
2
Medium Priority
?
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Nandakumar Sakthivel earned 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

730 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