CLFS and Vista

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)

 

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s