Testing the custom component in the Generic Log Adapter

The Generic Log Adapter provides a number of pre-defined components that can be used to create adapters to process application log files. If those components do not meet your requirements, the Generic Log Adapter can be extended by creating custom components that can be included in the context of an adapter configuration file.

To test the custom component, you can launch a run-time workbench to test the new component plug-in project you created:

  1. In the Plug-in Development perspective, select Run > Run. The launch configuration dialog is loaded.
  2. From the Configurations list, double-click on Run-time workbench. A new workbench configuration is created and the details are shown in the right pane.
  3. Under the Plug-ins tab, the option Launch with all workspace and enabled external plug-ins is selected. If you do not want to run other plug-ins currently in your workspace, select the option Choose plug-ins and fragments to launch from list and deselect the plug-ins you do not want to load. Click Run to launch the new workbench.
  4. In the new workbench, create a simple project by clicking File > New > Project. In the New Project wizard, select Simple > Project.
  5. Specify a project name and click Finish.
  6. Create a new adapter configuration file, or import an existing adapter configuration file into your project. To import an existing adapter configuration file:
    1. From the menu, select File > Import.
    2. In the Import Wizard, select File system.
    3. Specify the location of the adapter configuration file.
    4. Click Finish.
  7. You can test your component by adding the new component to this adapter. See the topic on Adding a custom component to an adapter.
  8. Once the adapter configuration file is updated, run the adapter to test your new component.

Related tasks
Creating a log parser

Related references
Adapter Configuration File structure