Show TOC Start of Content Area

Background documentation Log (Destination)  Locate the document in its SAP Library structure

Use

A log represents the destination where the messages are written.

Like the log controller, a severity level can be defined for each log. Unlike the default for log controller (Severity.NONE), the default for a log is Severity.ALL. That is, there is no effect on the main severity level check with the log controller.

Note

To avoid confusion, all the possibilities to change the severity of a log have been removed. Therefore, currently user can consider logs as they have no severity at all.

Currently, the following logs are predefined:

      ConsoleLog – directs the messages to the System.err (java.lang.System). This log type is typically used in the debugging process for a quick overview of problems.

      FileLog – directs the messages to a file or a set of rotating files.

More information: Output File.

      StreamLog – directs the messages to an arbitrary OutputStream (java.io.OutputStream);

Activities

      Commonly, log controllers inherit the logs from their parent controllers.

      However, in the log configuration there are some log controllers that do not inherit from their parents, but have logs assigned to them according to the default configuration instead. The purpose of those log controllers is not to write their messages to the defaultTrace.trc file (which is considered public), but to write to their own specific destinations. The main reason for this is security.

 

End of Content Area