withTestingLock

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

void
withTestingLock
(
void delegate
()
dg
)

Parameters

dg void delegate
()

The code to run.