Extending a log

You can customize your log files by configuring the plug-ins to extend an extension point and writing a class that designs your log.

Procedure

  1. Create a new plug-in project.
    By default, the Eclipse environment displays the project Overview after you create the project.
    Note: If the project Overview is not displayed by default, right-click MANIFEST.MF under the META-INF folder, and click Open With > Plug-in Manifest Editor.
  2. Click the Dependencies tab, and click Add under Required Plug-ins.
  3. Select com.ibm.rational.test.ft.playback from the Plug-in Selection list, and click OK.
  4. Save the plugin.xml file.
  5. Click the Extensions tab, and click Add.
  6. Select the com.rational.test.ft.playback.logExtension extension point from the list, and click Finish.
  7. Type the extension ID and Name.
  8. Right-click com.ibm.rational.test.ft.playback.logExtension in the left pane of Extensions window.
  9. Click New > Log.
    The log file is displayed under the extension file.
    Note: Customized or extended log files in formats other than the standard formats cannot be viewed in either the Test UI Eclipse Integrated Development Environment or the Visual Studio IDE.
  10. In Extension Element Details, specify the properties of the log.
    1. Type a unique ID for the log in LogID field. Test UI uses this LogID to list the log type on the Preference Page.
    2. Type a class name in Class field. This class name extends the base class LogExtensionAdapter.
    3. Optional: Type a description of the log in Description field.
  11. Save the project.