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 J2EE Engine Visual Administrator.

More information: Formatter

Caution

You can configure and manage formatters for existing destinations only.

Prerequisites

Start the J2EE Engine Visual Administrator by double-clicking the script file go in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/admin directory.

Procedure

Adding a New Formatter

...

       1.      Choose Log Configurat or Service Runtime and then select This graphic is explained in the accompanying text To advanced mode.

       2.      Choose the Formatters tab.

       3.      Choose New.

The New formatter dialog box appears.

...

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

                            b.      Choose OK.

The new formatter appears in the Log Formatters pane.

Editing a Formatter

...

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

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

Caution

This is valid for the TraceFormatter only.

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.

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

You can specify your own type or you can use 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.

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

Removing a Formatter

...

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

       2.      Choose Remove.

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

 

End of Content Area