diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-05-13 14:33:18 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-05-17 17:45:15 -0400 |
commit | cf84d24e7792aefe8ae7b24536bde23d2ae00770 (patch) | |
tree | 0f9d168584df51354ceed8501798d922aeb2c0ee /gnuradio-runtime/python/gnuradio | |
parent | 683d10a5d15652fead69ff76213ae94c4bbb2ec2 (diff) |
fec: wip: mods for ber plotting. Now adding theoretical BPSK in AWGN curve.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/__init__.py b/gnuradio-runtime/python/gnuradio/gr/__init__.py index c8b6141e6a..4fc55c68b2 100644 --- a/gnuradio-runtime/python/gnuradio/gr/__init__.py +++ b/gnuradio-runtime/python/gnuradio/gr/__init__.py @@ -49,8 +49,10 @@ from gateway import basic_block, sync_block, decim_block, interp_block # Force the preference database to be initialized prefs = prefs.singleton -log = gr.logger("gr_log") +log = gr.logger("log") +log.add_console_appender(prefs().get_string("LOG", "log_level", "off"), 'gr::log %d :%p: %m%n') log.set_level(prefs().get_string("LOG", "log_level", "notset")) -log_debug = gr.logger("gr_log_debug") +log_debug = gr.logger("log_debug") +log_debug.add_console_appender(prefs().get_string("LOG", "debug_level", "off"), 'gr::debug %d :%p: %m%n') log_debug.set_level(prefs().get_string("LOG", "debug_level", "notset")) |