According to the type of log file that is selected for import, a corresponding parser is registered as an extension point in the plugin.xml file of the eclipse\plugins\com.ibm.etools.logging.adapter.config directory (located in the product Eclipse installation directory).
The following is the code snippet for the WebSphere Activity Server V5 Log parser extension point:
<extension
point = "org.eclipse.hyades.logging.parsers.logParser">
<parser
id="com.ibm.etools.logging.parsers.WASV5ActivityLogParser"
name="%STR_WASV5_ACTIVITY_LOG_IMPORT_NAME"
ui_name="%STR_WASV5_ACTIVITY_LOG_IMPORT_NAME"
description="%STR_WASV5_ACTIVITY_LOG_IMPORT_DESCRIPTION"
icon="./icons/full/obj16/log_parser.gif"
class="com.ibm.etools.logging.parsers.WASV5ActivityLogParser">
<field
id="file_path"
name="%STR_WASV5_ACTIVITY_LOG_IMPORT_FILE_PATH"
defaultValue="activity.log"
useBrowse="true"
browseType="*.log"
tooltip="%STR_WASV5_ACTIVITY_LOG_IMPORT_FILE_PATH_TOOLTIP"
helpContextId="">
</field>
<field
id="was_home"
name="%STR_WASV5_ACTIVITY_LOG_IMPORT_WAS_HOME"
defaultValue=""
useBrowse="true"
tooltip="%STR_WASV5_ACTIVITY_LOG_IMPORT_WAS_HOME_TOOLTIP"
helpContextId="">
</field>
</parser>
</extension>
The entry fields on the Location page of the Import wizard (File > Import...) are specified as field elements of this extension point, for example, when the WebSphere Application Server V5 activity log is selected as the file to import. The first field element specifies the Activity log file path text field, which has an associated Browse button that enables you to look for files with extension *.log. The default value for this text field is activity.log. The second element specifies the WebSphere Application Server V5.0 installation directory text field, which also has an associated Browse button. As there is no file filter specified for the Browse button, only folders are browsed. The text field has no default value in this case.
For more information on log parser extension points in general, see Creating a log parser.
Related tasks
Configuring the import location for log files
Importing log files
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.