I'm currently working on an Application Log File component that we can embed in various applications that we will be building. I would like the Log File component to generate XML based Log files instead of the more traditional plain text log files. The primary reason for this is so that we can embed additional information in the logs in a way that will both be easy to view (open them up in IE and just browse the tree) or work with programmatically.
My current thoughts on how to do this is to instantiate an XmlDocument object when the component is created and then as new entries are added to the document, write the whole document out to the hard drive. My problem with this approach is that it seems like there would be a lot of overhead involved in constantly rewriting the entire log file, not to mention the memory usage required to maintain the entire log file in memory. Are there other options for doing this sort of thing that I'm not thinking of? Thanks in advance, Shawn S. Smiley, MCDBA Sr Software Developer/Software Architect Integrated Business & e-Commerce Solutions xwave New England www.xwave.com Augusta * Portland * Lewiston * Portsmouth 193 Middle Street , Suite 401 Portland, ME 04101 P 207 774-2104 x222 * F 207 772-2400 You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.