SchwarzIT / sap-usi-logging-api

An easy-to-use, object-oriented encapsulation around the SAP application log (Transaction SLG1)
Apache License 2.0
23 stars 0 forks source link

Client-specific log level #4

Closed NeumannJoerg closed 2 years ago

NeumannJoerg commented 2 years ago

The API currently knows two different log levels:

They are suitable for most cases, but at rare occasions you might want to increase the log level of an entire client as a current setting. A valid use-case for that would be the rollout of a new solution, that includes a hypercare-phase. Setting a client-wide log level during that phase might be a good idea.

As an abuse of that functionality might lead to ridiculous amounts of data being written, the usage has to be limited to a reasonable extend.

The User specific Log Level already enforces an expiration date, that must not be more than 14 days in the future. The client specific Log Level should default to a maximum of three days in the future.

As the needed validity periods might differ between systems, clients or customers, they should be made flexible using BAdIs. A default implementation shipped with the API should define reasonable defaults (14 days; 3 days), that can be overwritten, if needed.

NeumannJoerg commented 2 years ago

Implemented with commit #51671e0