Adding, Editing and Removing Log
Formatters
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

You can configure and manage formatters for existing destinations only.
Start the J2EE Engine Visual Administrator by double-clicking the script file go in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/admin directory.
...
1.
Choose Log Configurat or Service → Runtime and then select
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.
...
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.

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
Apply.
...
1. From the Log Formatters pane, select the formatter you want to remove.
2. Choose Remove.
3.
Choose
Apply.