Client specific Log Level - SchwarzIT/sap-usi-logging-api GitHub Wiki

Table name: /USI/BAL_LV_CLNT
Maintained via: SM30

If the Product specific Log Level does not produce a log, that is verbose enough to analyze an issue, it can be overwritten as a current setting.

The setting will affect all users of the client. If you need to increase the log level for selected user (e.g. when analyzing an issue) the User specific Log Level would be the appropriate solution.

You can change these settings directly in the productive system.

Structure

The structure of all customizing tables has been documented in a unified format.

General Information explains how this documentation is to be read.

Fieldname Fieldtype Filter-Priority Description
MANDT Key Client
LOG_OBJECT Filter 1 Log object
SUB_OBJECT Filter 2 Sub object
ENDDA Key Expiration date of the entry. Only entries having an ENDDA >= SY-DATUM will be considered.
LOG_LEVEL Data Assigned Log-Level
AUTO_SAVE Data ABAP_TRUE: Return 1 for AUTO_SAVE_PACKAGE_SIZE (see: Product specific Log Level)

Defaults

If no suitable customizing can be found, the following default values will be applied.

Fieldname Default
LOG_LEVEL 0 (Log completely deactivated)
AUTO_SAVE ABAP_FALSE: Return 0 for AUTO_SAVE_PACKAGE_SIZE (see: Product specific Log Level)

Auto-Save

Setting the auto-save flag saves all messages directly.

This is particularly useful if an application fails to call the save method, for example, due to dumps or infinite loops over multiple modularization units. Setting the auto-save flag can be very helpful in narrowing down the possible causes of the problem.

Setting the flag has a negative impact on performance, as every single message is directly written to the database.

Expiration

Since an enhanced log level might create a lot of data over time the table maintenance view will enforce an expiration date for each entry.

The maximum validity in days will be determined by calling a BAdI, that is shipped with a default implementation.

If needed the default can be overwritten by adding another BAdI implementation (Transaction SE19).

Label Value
Enhancement Spot /USI/BAL_CUSTOMIZING_VALIDITY
BAdI /USI/BAL_CUST_VALIDITY_CLNT
Interface /USI/IF_BAL_CUST_VALIDITY
Filters Log Object, Sub Object
Default value 3 (Days)
⚠️ **GitHub.com Fallback** ⚠️