What replaces WMI in 5.0 and later?

Topics: Logging Application Block
Mar 17, 2011 at 8:32 PM

I just downloaded Enterprise Library 5.0 (my first acquaintance with EL) and try to configure the WMI logging - when I examine the documentation closer I can see that WMI for a large part is no longer on the 5.0 version. I assume that it is replaced by something else? but what - and how?
Hope someone can help a "new one" - Thanks :-)

Mar 18, 2011 at 1:38 AM

There's no replacement.  But you can still use the WMI Trace Listener.


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.

Mar 18, 2011 at 4:18 AM

We removed the WMI instrumentation inside the library itself because it was complicated, intrusive, and, as far as we could tell, nobody was using it. Even the MS System Center folks (who originally requested the feature) aren't using it for anything.

As Sarah said, the WMI trace listener for the logging block is still present, so you can expose your own logging information via WMI. But the internals of the library do not.

On a slightly different note, I've never found the internal Entlib instrumentation to be particularly useful except as an example. The level at which the instrumentation is done is too low, and doesn't actually give you any insight into what your app is doing.