Show TOC Start of Content Area

Procedure documentation Adding, Editing and Removing Log Formatters  Locate the document in its SAP Library structure

Use

Each log destination type can print messages in different formats: TraceFormatter, XMLFormatter, and ListFormatter. This procedure describes how you manage log formatters using the Config Tool.

More information: Formatter.

Note

You can configure and manage formatters for existing destinations only.

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 cluster template Log Configuration Formatters..

       2.      Select any formatter name from the list and then choose New.

A dialog box appears.

...

                            a.      In the Enter name field, specify the name of the new formatter.

                            b.      Choose OK.

The new formatter appears in the Formatters pane.

Editing a Formatter

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

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

You can choose from the default ones:

...

                            a.      ListFormatter – formats a log record, which is then ready to be transferred to and processed further by another application, for example, Log Viewer.

                            b.      TraceFormatter – a format that is readily understood by users. Only to this format you can specify a pattern. If you do not specify such, a default one is created.

                            c.      XMLFormatter – formats log records as XML elements.

       3.      Choose the Pattern field to configure this formatter with a custom formatting pattern.

Note

For the TraceFormatter you can configure the formatter using a custom formatting pattern. The pattern enables you to specify the message data fields, with place holders of the form %[[-]<width>[-]]<type>, interspersed with arbitrary text that you want to include in the formatted messages.

       4.      Choose This graphic is explained in the accompanying text Apply.

Removing a Formatter

...

       1.      From the Formatters pane, select the formatter you want to remove.

       2.      Choose Remove.

       3.      Choose This graphic is explained in the accompanying text Apply.

Note

For the changes to take effect, restart the cluster.

 

End of Content Area