diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-08-03 13:05:37 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-19 14:00:08 -0500 |
commit | 1bb08e8004aa8ba6637db3f06abdc283ea56c18a (patch) | |
tree | 39140de01d77dee6999f85e90d9fa9dc7cf8471f /gnuradio-runtime/python/gnuradio/gr/__init__.py | |
parent | cb60862fd493a0141946ff9dddc5a98c9c67690b (diff) |
logging core: replace log4cpp by spdlog
also: enable formerly disabled qa_logger tests
This replaces log4cpp with spdlog.
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/__init__.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/__init__.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/__init__.py b/gnuradio-runtime/python/gnuradio/gr/__init__.py index 5103bf97a7..0715a641ea 100644 --- a/gnuradio-runtime/python/gnuradio/gr/__init__.py +++ b/gnuradio-runtime/python/gnuradio/gr/__init__.py @@ -1,5 +1,6 @@ # # Copyright 2003-2012, 2018 Free Software Foundation, Inc. +# Copyright 2021 Marcus Müller # # This file is part of GNU Radio # @@ -39,19 +40,7 @@ from .gateway import basic_block, sync_block, decim_block, interp_block, py_io_s log = gr.logger("log") log.set_level(prefs().get_string("LOG", "log_level", "notset")) -log_file = gr.prefs().get_string("LOG", "log_file", ""); -if(log_file == "stderr" or log_file == "stdout"): - log.add_console_appender(log_file, "gr::log %d :%p: %m%n") -else: - log.add_file_appender(log_file, True, "%r :%p: %c{1} - %m%n") - log_debug = gr.logger("log_debug") -log_debug.set_level(prefs().get_string("LOG", "debug_level", "notset")) -log_debug_file = gr.prefs().get_string("LOG", "debug_file", ""); -if(log_debug_file == "stderr" or log_file == "stdout"): - log_debug.add_console_appender(log_debug_file, "gr::log %d :%p: %m%n") -else: - log_debug.add_file_appender(log_debug_file, True, "%r :%p: %c{1} - %m%n") io_signaturev = io_signature.makev io_signature3 = io_signature.make3 |