Hi, Marcus,
Thanks for your generous help.
[LOG]
# Levels can be (case insensitive):
# DEBUG, INFO, WARN, TRACE, ERROR, ALERT, CRIT, FATAL, EMERG
log_level = info
debug_level = info
# These file names can either be 'stdout' to output to standard output
# or 'stderr' to output to standard error. Any other string will
# create a file in which to output the logging information. An empty
# string or no value here will ignore this level of configuration
# completely.
log_file = /home/hu/rfid_code/log/log.txt
debug_file = /home/hu/rfid_code/log/debug.txt
# Used for advanced configuration of the logger
#log_config = /usr/local/etc/gnuradio/gr_log_default.xml
I have edited the /usr/local/etc/gnuradio/conf.d/gnuradio-runtime.conf file for logging like above:
/home/hu/rfid/Gen2-UHF-RFID-Reader/gr-rfid/lib/gate_impl.cc:
56 dc_samples.resize(dc_length);
57
58: GR_LOG_INFO(d_logger, "T1 samples : " << n_samples_T1);
59: GR_LOG_INFO(d_logger, "PW samples : " << n_samples_PW);
60
61: GR_LOG_INFO(d_logger, "Samples of Tag bit : "<< n_samples_TAG_BIT);
62: GR_LOG_INFO(d_logger, "Size of window : " << win_length);
63: GR_LOG_INFO(d_logger, "Size of window for dc offset estimation : " << dc_length);
64: GR_LOG_INFO(d_logger, "Duration of window for dc offset estimation : " << DC_SIZE_D << " us");
However, I still cannot find the log output whether in /home/hu/rfid_code/log/log.txt or in /home/hu/rfid_code/log/log.txt.
By the way, I run on terminal using
sudo GR_SCHEDULER=STS nice -n -20 python ./reader.py
not in grc, does it affect?
Best,