Convert test_running.py to use Python logging, and add more logs.

The commit https://chromium-review.googlesource.com/c/chromium/src/+/1448684
didn't seem to solve the issue where sometimes passing tests will time out -
EG tests that passed seem to hang before even reaching the
"Waiting for test process to terminate." line, and GTest tests that get
SIGTERM'd properly terminate but don't seem to return before hard timeout.

This changeset migrates to Python logging to allow for timestamping of
logging, and adds additional logging. Combined this should help provide
a closer picture of what's going on with this issue.

Bug: 898549
Change-Id: Ibc5963f820541a23c939eff5562b672d6200c0b1
Reviewed-on: https://chromium-review.googlesource.com/c/1459322
Commit-Queue: ericale <[email protected]>
Reviewed-by: Sergey Berezin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#630240}
diff --git a/ios/build/bots/scripts/test_runner_test.py b/ios/build/bots/scripts/test_runner_test.py
index 1da6292..dce3dc8 100755
--- a/ios/build/bots/scripts/test_runner_test.py
+++ b/ios/build/bots/scripts/test_runner_test.py
@@ -7,6 +7,7 @@
 
 import collections
 import glob
+import logging
 import os
 import subprocess
 import unittest
@@ -605,4 +606,6 @@
 
 
 if __name__ == '__main__':
+  logging.basicConfig(format='[%(asctime)s:%(levelname)s] %(message)s',
+    level=logging.DEBUG, datefmt='%I:%M:%S')
   unittest.main()