Make the log capture in tests more configurable

Use OS_LOG_CAPTURE to turn off log capturing entirely
and OS_DEBUG to control the log level being used.

Change-Id: If8254170087d4f9c312877026ff19a86ac557e53
Merge "Make the log capture in tests more configurable"