使用 plugin.xml 檔案配置外掛程式日誌記載喜好設定

對於實作「共用日誌記載」策略的外掛程式,應該將下列延伸點新增至該外掛程式的 plugin.xml 檔案,以配置日誌記載層次:

<extension point="com.ibm.etools.common.logging.commonLoggingOptions">
 	<options level="ALL"/> 
 	
 		<CommonBaseEvent creationTime="2004-06-03T19:45:03.341Z">
 			<extendedDataElements name="Code">
 			</extendedDataElements>
 		</CommonBaseEvent>   
</extension>
 
options 元素的 level 屬性就是與外掛程式相關聯的預設日誌記載層次。options 元素是選用的。

options 元素設定的有效 level 屬性如下:

CommonBaseEvent 元素指定外掛程式自訂的共用 BaseEvent Factory 預設值,可用來建立配置的「共同基本事件」。 這個元素也是選用的。

相關參照
設定外掛程式日誌記載喜好設定