[ndnSIM] Problem about logging

Alex Afanasyev aa at CS.UCLA.EDU
Wed Apr 13 18:54:46 PDT 2016

> On Mar 30, 2016, at 10:12 PM, Weihong Yang(杨伟宏) <zhsupperviol at gmail.com> wrote:
> Dear ALL,
> I was trying to enable NFD logging in my forwarding strategy, and I had followed the steps in the NFD developer guide:
> 1. include core/logger.hpp header file
> 2. declare logging module using NFD_LOG_INIT("MyStrategy");
> 3. use NFD_LOG_DEBUG("DEBUG message"); in my source code.
>  And I ran the simulation scenarios using the following command:
> NS_LOG=nfd.MyStrategy ./waf --run=Mystrategy --vis

It should have worked.  You probably want to double check that your strategy gets any interests at all (e.g., check that you have configured your strategy for the namespace and that consumer apps use this namespace to send interests).

In my experience, running with/without visualizer shouldn't have any effect on it.


> However, there is no output of logging information. I was wondering where I went wrong.
>  Thanks in advance.
> Yours,
> Weihong Yang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160413/bc838ada/attachment.bin>

More information about the ndnSIM mailing list