Configuring plug-in logging using the plugin.xml file

For plug-ins implementing Common Logging, the following extension point should be added to the plug-in's plugin.xml file to configure the logging level and Common Base Event factory:

<extension point="com.ibm.etools.common.logging.commonLoggingOptions">
   <options level="ALL"/>
   <CommonBaseEvent msg="Common Base Event Template Message">
   	<sourceComponentId application="Common Logging" component="sample" componentIdType="Application" subComponent="Log" componentType="Eclipse Plugins"/>
	<situation categoryName="ReportSituation">
		<situationType reasoningScope="INTERNAL" reportCategory="LOG"/>
	</situation>
   </CommonBaseEvent>
</extension>
The level attribute of the options element is the default logging level associated with the plugin. The options element is optional. If options is not specified the default logging level is NONE.

The valid level attribute of the options element settings are as follows:

The CommonBaseEvent element specifies the default values for the plug-in's customized Common Base Event factory which may be used to create configured Common Base Events. This element is optional as well.

Related reference
Setting plug-ins logging preferences
Logging preferences for Log and Trace Analyzer