Adding, Editing and Removing Log Formatters

Use

Each log type can print messages in different formats: TraceFormatter, XMLFormatter , and ListFormatter . This procedure helps you manage the log formatters.

More information: Formatter

Prerequisites

Start the Config Tool by double-clicking the configtool script file in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.

Procedure

Adding a New Formatter

  1. Choose Start of the navigation pathcluster Next navigation step <template_name>/<instance_number> Next navigation step log configuration Next navigation step formattersEnd of the navigation path.

  2. Select any formatter from the tree and then choose New .

    A dialog box appears.

  3. Enter a name for the new log formatter and then choose OK .

    The new formatter appears in the Formatters tree.

Editing a Formatter

  1. From Formatters tree, select the formatter you want to edit.

  2. From Type dropdown box, choose the formatter type.

    The following are default ones:

    • ListFormatter - formats log records that can be transferred to and processed further by another application (for example, by Log Viewer).

    • TraceFormatter - formats log records in human readable format. You can specify a pattern to this format. If you do not specify such, the default one is created.

    • XMLFormatter - formats log records as XML elements.

  3. Choose Pattern field to configure the formatter.

  4. Choose Apply Changes.

Removing a Formatter

  1. From Formatters tree, select the formatter you want to delete and choose Remove .

  2. Choose Apply Changes.