Destroy the log - SchwarzIT/sap-usi-logging-api Wiki

The rule of thumb is: If you open a log, you must destroy it, once you are done with it.

This is especially important, if you are logging in e.g. BAdIs, that are called by multiple applications. If the BAdI is called, before the main application gets the chance to open a log and does not destroy the logger, once it is done, the singleton (see: Central Concepts-> One Log) will remain bound, which forces that other application under the BAdIs log. Additionally, the other application would not be able to save the log, as it is not the owner of the log (see: Central Concepts-> Loggers have owners)!

Failing to destroy a logger once you don't need it anymore might break other peoples logs!

logger->free( token ).