<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div>I think Damian wants to do module specific logging in NLSR.  Can you tell him how to do this using the logger in ndn-cxx?<br>
<br>
Lan </div>
<div><br>
On Jun 5, 2017, at 11:13 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="auto">
<div>Hi Damian
<div dir="auto"><br>
</div>
<div dir="auto">NFD having separate logging code is due to historical reason: NFD logging predates ndn-cxx logging.</div>
<div dir="auto">NFD calling setDestination is to avoid conflicts: log entries may appear twice if both NFD and ndn-cxx initializes Boost.Log.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yours, Junxiao</div>
<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Jun 5, 2017 09:08, "Damian Matthew Coomes (dmcoomes)" <<a href="mailto:dmcoomes@memphis.edu">dmcoomes@memphis.edu</a>> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_8576974444708086248divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>NDN Community,</p>
<div class="quoted-text">
<p><br>
</p>
<p></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px;margin-top:0px;margin-bottom:0px">
I was looking through NFD's version of boost logging and I would like some clarification. Although I do see that NFD uses ndn-cxx's setDestination and flush functions directly, the functions contained in the logger and the logger factory files seem mostly to
 be redefinitions of those in ndn-cxx. Chronosync, on the other hand, uses ndn-cxx's logging directly. What was the reason for NFD's way of handling loggers? Was it done so you could have more control over NFD's loggers? One issue that I have run into with
 implementing ndn-cxx's boost logging in NLSR is filtering the loggers to only display logs from NLSR. For instance if I use setLevel("*", ndn::util::Loglevel::DEBUG), it will log from modules in ndn-cxx and chronosync as well. Is this why NFD has declared
 its own set of loggers?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px;margin-top:0px;margin-bottom:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px;margin-top:0px;margin-bottom:0px">
Thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px;margin-top:0px;margin-bottom:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px;margin-top:0px;margin-bottom:0px">
Damian</div>
<br>
<p></p>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Nfd-dev mailing list</span><br>
<span><a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a></span><br>
<span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a></span><br>
</div>
</blockquote>
</body>
</html>