Show TOC Start of Content Area

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 SAP NetWeaver Developer Studio.

      An already created EAR project. For more information about how you can create an EAR project, 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 formatter name.

                            b.      In the Log Formatter Pattern field, configure this formatter with a custom pattern.

The pattern enables you to specify the message data fields with placeholders of the form %[[-]<width>[-]]<type>.

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

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

                                                ii.       TraceFormatter – formats logs with no 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 of the Log Formatter tab to edit the content.

       3.      Choose Save.

Removing a Formatter

...

       1.      Select the formatter you want to remove.

       2.      Choose Remove.

       3.      Choose Save.

 

End of Content Area