<?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 logger library into a project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59915/how-to-add-logger-library-into-a-project</link><description>Hi everyone, 
 This is my first time using Nordic nRF SDK, so i hope that I&amp;#39;m not asking for anything too stupid, I&amp;#39;m having troubles in adding nrf_logger.h into a project. I&amp;#39;ve tried to search for clues in the twi_scanner example but none of the tries</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Apr 2020 07:46:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59915/how-to-add-logger-library-into-a-project" /><item><title>RE: How to add logger library into a project?</title><link>https://devzone.nordicsemi.com/thread/243811?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 07:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b088938f-61d0-4538-9c1d-00f1e52a9bcc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It can a bit of work to add the logger module to a new project because it has quite a few dependencies. I did&amp;nbsp;myself for the blinky example in this thread &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55909/logging-deferred-crashes-but-in-place-works"&gt;link&lt;/a&gt;.&amp;nbsp;&amp;nbsp;My recommendation would be&amp;nbsp;to rather start with an existing example that already has the module integrated (all BLE examples do).&lt;/p&gt;
&lt;p&gt;Anyway, the usual logger dependencies are:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;components/libraries/log/src/nrf_log_backend_rtt.c&lt;br /&gt;components/libraries/log/src/nrf_log_backend_serial.c&lt;br /&gt;components/libraries/log/src/nrf_log_backend_uart.c&lt;br /&gt;components/libraries/log/src/nrf_log_default_backends.c&lt;br /&gt;components/libraries/log/src/nrf_log_frontend.c&lt;br /&gt;components/libraries/log/src/nrf_log_str_formatter.c&lt;br /&gt;external/segger_rtt/SEGGER_RTT.c&lt;br /&gt;external/segger_rtt/SEGGER_RTT_Syscalls_SES.c&lt;br /&gt;external/segger_rtt/SEGGER_RTT_printf.c&lt;/p&gt;
&lt;p&gt;And you need to make sure your sdk_config.h file contain relevenant configuration settings for the logger. Use other examples as a reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>