2.8 [Enterprise Library] measuring instrument available

Source: Internet
Author: User
Copyright (c) 2007 Dorian Deng. Signature Sharing is not commercially available.
Reprinted please indicate the source: http://blog.csdn.net/doriandeng/archive/2007/09/28/1805614.aspx

 

The term "Measuring Instrument" refers to the ability of the system to monitor or measure performance and diagnose errors. For more information about measuring instruments, see publish an application in. net.ProgramMonitoring Design in.

The Enterprise Library includes the following measuring instruments in all application blocks:

Event Logs

The Application Block notifies users of key events, such as errors and warnings.

Performance counters

The Application Block record key dimension, such as the number of serious events generated per second or the average number of key tasks, is written to the performance calculator of the Microsoft Windows operating system.

Windows Management Instrumentation (Wmi)

Application blocks report major events in the application blocks by publishing WMI events.

Available and unavailable Measuring Instrument

By default, the measuring instrument is unavailable. To make the measuring instrument available, you must install the Measuring Instrument Mode and configure the application.

Installation and uninstallation measure Mode

You can runInstallservices. batBatch file, or useStartIn the menuInstall InstrumentationShortcut. To use shortcuts, clickStart, PointingProgram,Microsoft patterns & Practices,Enterprise Library 3.1-May 2007And then clickInstall Instrumentation.

To uninstall the measuring instrument, you can include/UParameter runningInstallservices. batBatch files can also be usedStartIn the menuUninstall InstrumentationShortcut. To use shortcuts, clickStart, PointingProgram,Microsoft patterns & Practices,Enterprise Library 3.1-May 2007And then clickUninstall Instrumentation.

Note:

StartThe menu Link always runs binary with a strong name. Run [SRC install root] \ app blocks \ installservices. BAT to install the measuring instrument of the Assembly copy compiled from the source code.

Configure the application for the measuring instrument

Measuring Instrument by the application configuration file<Instrumentationconfiguration>This section determines the behavior of the measuring instrument on the entire application.

By default, all measuring instruments are unavailable. You can use the configuration to make the measuring instrument available, or if it was previously available to make it unavailable. All the measuring instrument attributes appear in the right panel. When the attribute is setTrueThe measuring instrument is available. When the attribute is not setFalseThe measuring instrument is unavailable.

Configuration Measuring Instrument
  1. Start the configuration console. To start the configuration console, clickStart, PointingProgram,Microsoft patterns & Practices,Enterprise Library 3.1-May 2007And then clickEnterprise Library Configuration.

  2. ClickNew ApplicationOrOpen existing application.

  3. Right-clickApplication configuration, PointingNewAnd then clickInstrumentation.

  4. SetEventloggingenabledAttribute, inputTrueOrFalseOr select one from the selected drop-down list. The default value isFalse.

  5. SetPerformancecountersenabledAttribute. InputTrueOrFalseOr select one from the selected drop-down list. The default value isFalse.

  6. SetWmienabledAttribute. InputTrueOrFalseOr select one from the selected drop-down list. The default value isFalse.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.