[ndnSIM] Problem about logging

Weihong Yang(杨伟宏) zhsupperviol at gmail.com
Thu Apr 14 10:25:07 PDT 2016


Hi Alex and Spyridon,

I have found out that there wasn't any thing wrong with the logging.
I just made a very very silly mistake when I use the Class StrategyChoiceHelper
to install my strategy.

Sorry to be a bother and I really appreciate your help.

Weihong Yang (*杨伟宏*)

2016-04-14 9:54 GMT+08:00 Alex Afanasyev <aa at cs.ucla.edu>:

>
> > 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.
>
> ---
> Alex
>
> >
> > However, there is no output of logging information. I was wondering
> where I went wrong.
> >  Thanks in advance.
> >
> > Yours,
> > Weihong Yang
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160415/a7bf1706/attachment.html>


More information about the ndnSIM mailing list