The new Enterprise Library for .NET 2.0 has disabled instrumentation by default.
It is very reasonable to do this because in low trust scenarios you are not
able to install Performance Counters, Windows Event Logs/Sources or update
WMI schemas. The previous version had "configurable" instrumentation
by some #ifdefs in the source code. To change instrumentation you had to recompile
the whole library every time you wanted to target a different deployment and therefore
trust scenario. This time the Enterprise Library team had more time to make it
really configurable. The outcome is remarkable easy to use. You can enable/disable the following
instrumentation settings:
- Error logging of all Application Blocks to the Windows Event Log.
- Performance Counter writes.
- Firing of WMI Events.
Show more ...