<div dir="ltr">I found this note in log.h file which proved useful. <div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font color="#000000"><span class="" id="LC175" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * LOG functionality: macros which allow developers to</span></span></font></div><div><font color="#000000"><span class="" id="LC176" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * send information out on screen. All logging messages </span></span></font></div><div><font color="#000000"><span class="" id="LC177" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * are disabled by default. To enable selected logging </span></span></font></div><div><font color="#000000"><span class="" id="LC178" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * messages, use the ns3::LogComponentEnable</span></span></font></div><div><font color="#000000"><span class="" id="LC179" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * function or use the NS_LOG environment variable </span></span></font></div><div><font color="#000000"><span class="" id="LC180" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> *</span></span></font></div><div><font color="#000000"><span class="" id="LC181" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * Use the environment variable NS_LOG to define a ':'-separated list of</span></span></font></div><div><font color="#000000"><span class="" id="LC182" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * logging components to enable. For example (using bash syntax), </span></span></font></div><div><font color="#000000"><span class="" id="LC183" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * NS_LOG="OlsrAgent" would enable one component at all log levels. </span></span></font></div><div><font color="#000000"><span class="" id="LC184" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * NS_LOG="OlsrAgent:Ipv4L3Protocol" would enable two components, </span></span></font></div><div><font color="#000000"><span class="" id="LC185" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * at all log levels, etc.</span></span></font></div><div><font color="#000000"><span class="" id="LC186" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * NS_LOG="*" will enable all available log components at all levels.</span></span></font></div><div><font color="#000000"><span class="" id="LC187" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> *</span></span></font></div><div><font color="#000000"><span class="" id="LC188" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * To control more selectively the log levels for each component, use</span></span></font></div><div><font color="#000000"><span class="" id="LC189" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * this syntax: NS_LOG='Component1=func|warn:Component2=error|debug'</span></span></font></div><div><font color="#000000"><span class="" id="LC190" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * This example would enable the 'func', and 'warn' log</span></span></font></div><div><font color="#000000"><span class="" id="LC191" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * levels for 'Component1' and the 'error' and 'debug' log levels</span></span></font></div><div><font color="#000000"><span class="" id="LC192" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * for 'Component2'.  The wildcard can be used here as well.  For example</span></span></font></div><div><font color="#000000"><span class="" id="LC193" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * NS_LOG='*=level_all|prefix' would enable all log levels and prefix all</span></span></font></div><div><font color="#000000"><span class="" id="LC194" style="display:inline;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:16px;white-space:pre"><span class=""> * prints with the component and function names.</span></span></font></div></blockquote><div><br></div><div>With this, we can enable log at component level. </div><div><br></div><div>/anil.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 9, 2014 at 12:30 AM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Spyros. This worked. </div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 8, 2014 at 5:51 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:spiros.mastorakis@gmail.com" target="_blank">spiros.mastorakis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello Anil,<div><br></div><div>you should enable the logging component. You can do that by typing:</div><div><br></div><div>NS_LOG=ndn.Consumer:ndn.Produce ./waf --run=ndn-grid-topo-plugin-loss</div><div><br></div><div>This worked for me and should also work for you.</div><div><br></div><div>Kind regards,</div><div>Spyros </div><div><br><div><blockquote type="cite"><div><div><div>On Nov 8, 2014, at 2:24 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:</div><br></div></div><div><div><div><div dir="ltr"><div>Hi Alex,</div><div><br></div><div>I trace back to one of your replies in past. <a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-January/000040.html" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-January/000040.html</a></div><div><br></div><div>When I run one of the example scenarios, I am not sure it is producing any output or if it actually running. The command with waf helper just produces below output. It apparently does not run the use case. </div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>./waf --run=ndn-grid-topo-plugin-loss</div><div>Waf: Entering directory `/home/anilj1/sandbox/ndnSIM/ns-3/build'</div><div>Waf: Leaving directory `/home/anilj1/sandbox/ndnSIM/ns-3//ns-3/build'</div><div>'build' finished successfully (1.877s)</div></blockquote><div><br></div><div>However, when I run the same command with --vis option it pops up the GUI, and I am able to see the GUI. On F3, I see some action on the GUI. However, this also does not generate any of the trace files you have mentioned in above link. </div><div><br></div><div>Can you pls point to correct steps? Does command line (non GUI) produces the logs elsewhere, which I am not aware of?</div><div><br></div><div>/anil.</div><div><br></div></div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>