
Each log type can print messages in different formats: TraceFormatter, XMLFormatter , and ListFormatter . This procedure helps you manage the log formatters.
More information: Formatter
You can configure and manage formatters for existing logs (destinations) only.
Start the Config Tool by double-clicking the configtool script file in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.
Adding a New Formatter
Choose .
We recommend that you make your log configurations on instance level .
Select any formatter from the tree and then choose New .
A dialog box appears.
Enter a name for the new log formatter and then choose OK .
The new formatter appears in the Formatters tree.
Editing a Formatter
From Formatters tree, select the formatter you want to edit.
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.
Choose Pattern field to configure the formatter.
For TraceFormatter you can make configuration, using a custom formatting pattern. The pattern enables you to specify the message data fields, with placeholders of the form %[[-]<width>[-]]<type> .
Choose
.
Removing a Formatter
From Formatters tree, select the formatter you want to delete and choose Remove .
Choose
.
You can remove only formatters created by you.