usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Out of Tree Modules Logging

MM
McNulty, Mike (Assoc)
Tue, Jul 27, 2021 2:45 PM

Hello everyone,

I feel like this should be easy but I'm struggling to implement logging for my OOT modules. Thishttps://wiki.gnuradio.org/index.php?title=Logging&direction=next&oldid=4871 wiki outlines how to setup the root cmake file to provide logging. Unfortunately, when I add what I think should be added I get an error.

[cid:image002.png@01D782C3.BC4EE680]

The error indicates that the function "GR_LOGGING()" does not exist.

I'm very new to cmake so I may be incorrectly implementing the logging requirements. Has anyone had recent success implementing logging?

  • The wiki indicates that log4cpp needs to be copied to cmake/modules in the OOT module. Which directory is log4cpp located?

Last question. If I setup logging will errors automatically propagate to the top block? Currently, my blocks in the flowgraph will throw an error and not report it to the TB. What is the best method to handle OOT block errors?

Thanks
Mike

System

Ubuntu 18.04
GNU Radio 3.8.31

Hello everyone, I feel like this should be easy but I'm struggling to implement logging for my OOT modules. This<https://wiki.gnuradio.org/index.php?title=Logging&direction=next&oldid=4871> wiki outlines how to setup the root cmake file to provide logging. Unfortunately, when I add what I think should be added I get an error. [cid:image002.png@01D782C3.BC4EE680] The error indicates that the function "GR_LOGGING()" does not exist. I'm very new to cmake so I may be incorrectly implementing the logging requirements. Has anyone had recent success implementing logging? * The wiki indicates that log4cpp needs to be copied to cmake/modules in the OOT module. Which directory is log4cpp located? Last question. If I setup logging will errors automatically propagate to the top block? Currently, my blocks in the flowgraph will throw an error and not report it to the TB. What is the best method to handle OOT block errors? Thanks Mike System ------------ Ubuntu 18.04 GNU Radio 3.8.31
MD
Marcus D. Leech
Tue, Jul 27, 2021 2:50 PM

On 07/27/2021 10:45 AM, McNulty, Mike (Assoc) via USRP-users wrote:

Hello everyone,

I feel like this should be easy but I’m struggling to implement
logging for my OOT modules. This
https://wiki.gnuradio.org/index.php?title=Logging&direction=next&oldid=4871
wiki outlines how to setup the root cmake file to provide logging.
Unfortunately, when I add what I think should be added I get an error.

The error indicates that the function “GR_LOGGING()” does not exist.

I’m very new to cmake so I may be incorrectly implementing the logging
requirements. Has anyone had recent success implementing logging?

  • The wiki indicates that log4cpp needs to be copied to
    cmake/modules in the OOT module. Which directory is log4cpp located?

Last question. If I setup logging will errors automatically propagate
to the top block? Currently, my blocks in the flowgraph will throw an
error and not report it to the TB. What is the best method to handle
OOT block errors?

Thanks

Mike

System


Ubuntu 18.04

GNU Radio 3.8.31

This question will get a better audience on the discuss-gnuradio mailing
list, even if you're using a USRP, general Gnu Radio questions like this
(particularly about GR build tooling) should probably go there.

On 07/27/2021 10:45 AM, McNulty, Mike (Assoc) via USRP-users wrote: > > Hello everyone, > > I feel like this should be easy but I’m struggling to implement > logging for my OOT modules. This > <https://wiki.gnuradio.org/index.php?title=Logging&direction=next&oldid=4871> > wiki outlines how to setup the root cmake file to provide logging. > Unfortunately, when I add what I think should be added I get an error. > > The error indicates that the function “GR_LOGGING()” does not exist. > > I’m very new to cmake so I may be incorrectly implementing the logging > requirements. Has anyone had recent success implementing logging? > > * The wiki indicates that log4cpp needs to be copied to > cmake/modules in the OOT module. Which directory is log4cpp located? > > Last question. If I setup logging will errors automatically propagate > to the top block? Currently, my blocks in the flowgraph will throw an > error and not report it to the TB. What is the best method to handle > OOT block errors? > > Thanks > > Mike > > System > > ------------ > > Ubuntu 18.04 > > GNU Radio 3.8.31 > > This question will get a better audience on the discuss-gnuradio mailing list, even if you're using a USRP, general Gnu Radio questions like this (particularly about GR build tooling) should probably go there.