summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-23 12:33:49 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-23 12:33:49 +0100
commit53e966c17a26441696fd723cbb632be901d243c9 (patch)
treec57719c730db2735e1ba5ad11ac67ca22b335a99 /bin
parentce9d5d11c17d8e040827c9a9e28e1cad28abcf05 (diff)
logging: include timestamps in log output
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py2
-rwxr-xr-xbin/analyze-kconfig.py2
-rwxr-xr-xbin/analyze-log.py2
-rwxr-xr-xbin/analyze-timing.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 3da6ec3..f7f5f61 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -264,7 +264,7 @@ if __name__ == "__main__":
if not isinstance(numeric_level, int):
print(f"Invalid log level: {args.log_level}", file=sys.stderr)
sys.exit(1)
- logging.basicConfig(level=numeric_level)
+ logging.basicConfig(level=numeric_level, format="%(asctime)s %(message)s")
if args.ignored_trace_indexes:
ignored_trace_indexes = list(map(int, args.ignored_trace_indexes.split(",")))
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index f798277..94da015 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -148,7 +148,7 @@ def main():
if not isinstance(numeric_level, int):
print(f"Invalid log level: {args.log_level}", file=sys.stderr)
sys.exit(1)
- logging.basicConfig(level=numeric_level)
+ logging.basicConfig(level=numeric_level, format="%(asctime)s %(message)s")
if args.export_dref:
dref = dict()
diff --git a/bin/analyze-log.py b/bin/analyze-log.py
index 902eb31..cb67fa3 100755
--- a/bin/analyze-log.py
+++ b/bin/analyze-log.py
@@ -53,7 +53,7 @@ def main():
if not isinstance(numeric_level, int):
print(f"Invalid log level: {args.log_level}", file=sys.stderr)
sys.exit(1)
- logging.basicConfig(level=numeric_level)
+ logging.basicConfig(level=numeric_level, format="%(asctime)s %(message)s")
if args.filter_param:
args.filter_param = list(
diff --git a/bin/analyze-timing.py b/bin/analyze-timing.py
index bd9a81b..8f5c4b6 100755
--- a/bin/analyze-timing.py
+++ b/bin/analyze-timing.py
@@ -232,7 +232,7 @@ if __name__ == "__main__":
if not isinstance(numeric_level, int):
print(f"Invalid log level: {loglevel}", file=sys.stderr)
sys.exit(1)
- logging.basicConfig(level=numeric_level)
+ logging.basicConfig(level=numeric_level, format="%(asctime)s %(message)s")
except getopt.GetoptError as err:
print(err)