<div dir="ltr">Hi Alex and Spyridon,<div><br></div><div>I have found out that there wasn't any thing wrong with the logging.</div><div>I just made a very very silly mistake when I use the Class <span style="color:rgb(0,0,0);line-height:14.4px;background-color:initial">StrategyChoiceHelper to install my strategy.</span></div><div><br></div><div>Sorry to be a bother and I really appreciate your help.</div><div><br></div><div>Weihong Yang (<i>杨伟宏</i>) </div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-14 9:54 GMT+08:00 Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Mar 30, 2016, at 10:12 PM, Weihong Yang(杨伟宏) <<a href="mailto:zhsupperviol@gmail.com">zhsupperviol@gmail.com</a>> wrote:<br>
><br>
</span><span class="">> Dear ALL,<br>
><br>
> I was trying to enable NFD logging in my forwarding strategy, and I had followed the steps in the NFD developer guide:<br>
> 1. include core/logger.hpp header file<br>
> 2. declare logging module using NFD_LOG_INIT("MyStrategy");<br>
> 3. use NFD_LOG_DEBUG("DEBUG message"); in my source code.<br>
>  And I ran the simulation scenarios using the following command:<br>
> NS_LOG=nfd.MyStrategy ./waf --run=Mystrategy --vis<br>
<br>
</span>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).<br>
<br>
In my experience, running with/without visualizer shouldn't have any effect on it.<br>
<br>
---<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> However, there is no output of logging information. I was wondering where I went wrong.<br>
>  Thanks in advance.<br>
><br>
> Yours,<br>
> Weihong Yang<br>
><br>
</div></div></blockquote></div><br></div>