summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/log.py
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-05 19:51:40 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-08 10:12:25 +0000
commitfd7b9d040d77c0fed54654aa0349f2d289d082d3 (patch)
tree206bedf968a87fadc9c7806be800706340889d6b /src/osmo_gsm_tester/log.py
parent532126a7258ecbf444d96aa1a7ca7f3ea94ca6f4 (diff)
run dir: write detailed log file
For each run on a trial, create a log target that logs to a file in the run dir. Set all levels to DBG in that log target. Related: OS#2206 Change-Id: Ie7279aeaf32950f85d4145abdc917024003d1d99
Diffstat (limited to 'src/osmo_gsm_tester/log.py')
-rw-r--r--src/osmo_gsm_tester/log.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/log.py b/src/osmo_gsm_tester/log.py
index 10108bc..0da9bd5 100644
--- a/src/osmo_gsm_tester/log.py
+++ b/src/osmo_gsm_tester/log.py
@@ -83,6 +83,9 @@ class LogTarget:
self.style()
LogTarget.all_targets.append(self)
+ def remove(self):
+ LogTarget.all_targets.remove(self)
+
def style(self, time=True, time_fmt=DATEFMT, category=True, level=True, origin=True, origin_width=32, src=True, trace=False):
'''
set all logging format aspects, to defaults if not passed: