Show TOC Start of Content Area

Background documentation Configuration Tool  Locate the document in its SAP Library structure

Use

The SAP Logging API provides a means of independently configuring the behavior and output of logging, without you having to change the source code. This can be very useful, for example, if you want to generate more or fewer log messages depending on the diagnosis level you are in. Sometimes you may also want to change the output destination or the format of the message. These can all be specified separately and integrated dynamically in the program. It is not necessary to recompile the source code.

Caution

This section is relevant only for standalone tools applications. For example, the Config Tool.

Prerequisites

      Get acquainted with the section Enabling Logging for an Application.

More information: Enabling Logging for Applications.

      If you are clear about the example in this section, you will see that, what are left in the source code, are the APIs from steps 1 and 4. The rest can be taken out and placed in a properties file.

Guide Sections

The following sections show you how to read the properties file from your code, and how to construct a properties file:

      Calling the Configuration Tool

      Syntax and Semantics of the Properties File

      Support of Periodic Reloading

      Summary Highlights

      Tips and Tricks

 

 

End of Content Area