Solved

Logging

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

626 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