DB_LOG_* implementation using logger stack does not work properly in MT
The logger stack can be changed by a different thread before the current thread has the chance to log the message resulting in logs being added to undesired/other logger.
The logger stack can be changed by a different thread before the current thread has the chance to log the message resulting in logs being added to undesired/other logger.