The logging functionality provided by Log and Trace Analyzer implements Common Logging which enables plug-ins to log events in a Common Logging log file and Logging Agent. This file, <workspace>/.metadata/CommonBaseEvents.xml, can be imported into Log and Trace Analyzer for viewing, analysis, sorting, filtering and correlation.
The existing logging structure that uses the org.eclipse.core.runtime.IStatus is supported by the common logging architecture. The IStatus records are mapped to Common Base Event records and are serialized to XML fragments. For details on how to use Common Logging in Eclipse, see the example in File > New > Example > Common Logging > Common Logging Sample .
The logging preferences for a plug-in that implements Common Logging can be configured in one of two ways:
Related samples
Working with the Common Logging sample
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.