diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-23 14:42:22 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-23 14:42:22 +0100 |
commit | dc049f2511cf26c3257f0c644cb38fdce88042a3 (patch) | |
tree | af85551addec1f438553c2db2c6811f67169ebb4 /bin | |
parent | 53e966c17a26441696fd723cbb632be901d243c9 (diff) |
logging: re-add log level and module name to output. whoops.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 6 | ||||
-rwxr-xr-x | bin/analyze-kconfig.py | 6 | ||||
-rwxr-xr-x | bin/analyze-log.py | 6 | ||||
-rwxr-xr-x | bin/analyze-timing.py | 6 |
4 files changed, 20 insertions, 4 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index f7f5f61..00cf59c 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -264,7 +264,11 @@ 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, format="%(asctime)s %(message)s") + logging.basicConfig( + level=numeric_level, + format="{asctime} {levelname}:{name}:{message}", + style="{", + ) 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 94da015..5262b82 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -148,7 +148,11 @@ 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, format="%(asctime)s %(message)s") + logging.basicConfig( + level=numeric_level, + format="{asctime} {levelname}:{name}:{message}", + style="{", + ) if args.export_dref: dref = dict() diff --git a/bin/analyze-log.py b/bin/analyze-log.py index cb67fa3..70df11d 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -53,7 +53,11 @@ 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, format="%(asctime)s %(message)s") + logging.basicConfig( + level=numeric_level, + format="{asctime} {levelname}:{name}:{message}", + style="{", + ) if args.filter_param: args.filter_param = list( diff --git a/bin/analyze-timing.py b/bin/analyze-timing.py index 8f5c4b6..a04e804 100755 --- a/bin/analyze-timing.py +++ b/bin/analyze-timing.py @@ -232,7 +232,11 @@ 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, format="%(asctime)s %(message)s") + logging.basicConfig( + level=numeric_level, + format="{asctime} {levelname}:{name}:{message}", + style="{", + ) except getopt.GetoptError as err: print(err) |