<?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>How to add Logging module to an app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38467/how-to-add-logging-module-to-an-app</link><description>I need logging in almost anything I do, but I&amp;#39;ve never been able to start from an example that does not use logging and add logging. I&amp;#39;ve set the NRF_LOG_ENABLED and NRF_LOG_BACKEND_SERIAL_USES_UART flag. I&amp;#39;ve repeatedly built, fixing compile and link</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Sep 2018 07:18:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38467/how-to-add-logging-module-to-an-app" /><item><title>RE: How to add Logging module to an app</title><link>https://devzone.nordicsemi.com/thread/148530?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 07:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42400923-0038-4648-97e2-a2ad6fe192a8</guid><dc:creator>rconaway</dc:creator><description>&lt;p&gt;I&amp;#39;m going to answer this myself.&amp;nbsp; There is no documentation, just examples.&amp;nbsp; It looks like the process is as follows:&lt;/p&gt;
&lt;p&gt;1) Find an example that uses Logging&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;Merge the nrf_log sections from the example&amp;#39;s sdk_config.h&lt;/p&gt;
&lt;p&gt;2) Add NRF_LOG_INIT and NRF_LOG_DEFAULT_BACKENDS_INIT to your code&lt;/p&gt;
&lt;p&gt;3) Add obvious nrf_log .c files and header paths from the reference example&lt;/p&gt;
&lt;p&gt;4) Repeatedly build until you find all the non-obvious .c files and header paths&lt;/p&gt;
&lt;p&gt;5) With luck, it will work&lt;/p&gt;
&lt;p&gt;6) Remember what you changed so you can do it again for another project.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried to be 100% accurate, above, so I may have left out steps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>