Entering content frame

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

Use

This procedure describes how you can manage log formatters using the SAP NetWeaver Developer Studio.

Prerequisites

·        An installed and running NetWeaver Developer Studio.

·        An already created EAR project. For more information about how you can create an EAR project using the SAP NetWeaver Developer Studio, see Creating Enterprise Application Projects.

Procedure

...

       1.      In the J2EE Explorer tab, choose your EAR project.

       2.      From the context menu, choose New ® SAP logging configuration.

The log-configuration.xml appears in the project tree.

       3.      Choose the Log Formatter tab from the right-hand pane.

Adding a New Formatter

...

       1.      Choose the Log Formatters folder.

       2.      Choose Add. The new formatter appears in the Log Formatters tree.

       3.      Choose the newly created log formatter.

Several fields appear on the right-hand side of the Log Formatter tab. Use them to specify the parameters of the new formatter.

...

                            a.      In the Log Formatter Name field, specify the name of the formatter.

                            b.      In the Log Formatter Pattern field, configure this formatter with 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.

                            c.      Select the formatter type using the Reference target type drop-down list:

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

                                                ii.       TraceFormatter – a format that is readily understood by users. If you use this format type, you do not need to specify a pattern.

                                               iii.       XMLFormatter – formats log records as XML elements.

       4.      Choose Save.

Editing a Fomatter

...

       1.      Select the formatter you want to edit.

       2.      Use the fields in the right-hand side of the Log Formatter tab to edit the contents.

       3.      Choose Save.

Removing a Formatter

...

       1.      Select the formatter you want to remove.

       2.      Choose Remove.

A dialog box appears where you have to confirm that you want to remove this formatter. Choose OK.

       3.      Choose Save.

 

Leaving content frame