<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mesh debug print</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30767/mesh-debug-print</link><description>HI I&amp;#39;m developing Mesh network with SDK for mesh 1.0.1.0 
 I just started with own provisioner code bud a really need some debug print while programme running. 
 I tried a lot of ways but without succes. Can anybody help with this ? 
 I&amp;#39;m loking for some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Feb 2018 17:21:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30767/mesh-debug-print" /><item><title>RE: Mesh debug print</title><link>https://devzone.nordicsemi.com/thread/121727?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 17:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcaeef66-4fda-4334-8f7f-ab4d0cf533a9</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is logging support in nRF5 SDK for mesh. It uses RTT, which also integrates well with Segger Embedded Studio. While the logging macros are not currently documented on Infocenter, there are some examples of usage throughout the examples, for instance this one from the light_switch client:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Node 0x%04x alive with %u active fault(s), RSSI: %d\n&amp;quot;,
    p_event-&amp;gt;p_meta_data-&amp;gt;src.value, p_event-&amp;gt;data.fault_status.fault_array_length,
    p_event-&amp;gt;p_meta_data-&amp;gt;rssi);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should use the LOG_SRC_APP log source for log messages from your application. Log levels are defined in mesh/core/include/log.h, where the __LOG macro is defined as well. For configuring log level, etc., use mesh/core/api/nrf_mesh_config_core.h.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>