Show TOC Start of Content Area

Function documentation Log Configuration  Locate the document in its SAP Library structure

Use

The J2EE Engine provides an easy mechanism for configuring the behavior and output of logging. For this purpose, you do not need to write Java source code.

For example, if you want to generate more or fewer log messages, this depends on the diagnosis level they are in. You can also change the output destination, or even the format of the message. All these activities can be specified separately and integrated with the program. You do not have to recompile the source code.

The J2EE Engine log configuration is gathered in an XML file called log-configuration.xml. You can use this file to create or edit controllers, destinations, and formatters. You can also create or edit filters and associated destinations. For more information about the syntax of this XML file, see log-configuration.dtd.

To configure the logging parameters of your project, use the SAP NetWeaver Developer Studio. The following configuration options are provided:

      Adding, Editing, and Removing Log Formatters

      Adding, Editing, and Removing Log Destinations

      Adding, Editing, and Removing Log Controllers

      Managing the log-configuration.xml Source

 

Caution

This section aims only describing the way the log configuration can be done using the GUI provided by the SAP NetWeaver Developer Studio.

For a more detailed information about the log and trace configuration in J2EE Engine, see Log Configuration in the Administration Manual.

 

See also:

SAP Logging API

 

End of Content Area