Configuring the Logbook
Configuring the
various logging options is done directly via the Component Services Explorer. After
installing the logbook, you will have a new COM+ application called
Logbook with three components—the HTML logger, the
XML
logger, and an event class (see Figure A-3). All three components implement the
ILogbook
interface with the methods
LogError( ), LogEvent( ), and
LogMethod( ). The HTML and XML components have
four persistent subscriptions—one for each
ILogBook method and one for all the methods on the
interface.

Figure A-3. The Logbook application has three components: the HTML logger, the XML logger, and an event class
The main mechanism behind the logging is COM+ loosely coupled events. The macros publish the data as COM+ events, and the logbook components are persistent subscribers. Each logbook component has four persistent subscriptions in its Subscription folder: Errors Only, Methods Only, Events Only, and Log All.
By enabling or disabling a subscription, you can control what is being logged and in what format. After installation, by default, both the HTML and the XML Log All subscriptions are enabled and the other subscriptions are disabled. If, for example, you wish to have only HTML logging of events and errors, you should follow these steps:
Go to the XML components, select the Log All subscription, display its properties page, go to the Options ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access