Convenience function to acquire a lock on the SLF4D logging state and run some code, then reset the logging state and release the lock.
The code to run.
Convenience function to acquire a lock on the SLF4D logging state and run some code, then reset the logging state and release the lock.