2 Commits

Author SHA1 Message Date
Alistair Coles
40aace89f0 Capture logs when running custom daemons in probe tests
Previously a DebugLogger was used when probe tests ran 'custom
daemons', which provided a means to inspect captured logs but logged
to console. This patch replaces that DebugLogger with a 'normal' swift
logger that is adapted to also capture logs and support log
inspection.

Change-Id: I25da3aa81018c5de7b63e5584ac6a9dbb73243db
2021-06-24 09:32:38 +01:00
Alistair Coles
8f4200791b Move DebugLogger to its own module
Move DebugLogger and associated classes to its own module under test
so that it can be imported (for example in probe tests) without
requiring all the dependencies in test/unit/__init__.py.

Change-Id: I0ea3c26e54d91f27159805a45e49ad7f8f0e0431
2021-01-22 10:45:01 -06:00