here I found the managed API for the Common Log File System. I was not sure at that time if CLFS is also included in Vista (5219) because I got some strange exceptions when I tried to use the classes. As it turns out, there is a small bug in the LogStore class, especially when you pass FileMode.Create in the ctor. OpenOrCreate works. So, for now you want to start with something that looks like this:
using (LogStore store = new LogStore(“log:myLog”, FileMode.OpenOrCreate))
{
// do logging
}
(thanks to David Aiken from Microsoft for pointing that out)