Configure debug logging.

Preliminary debugging to better report out the reasons why some tests fail on Windows.