<?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>NRF_LOG_INFO and printf</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81476/nrf_log_info-and-printf</link><description>I&amp;#39;d like to both use printf and NRF_LOG in my application. However, I have not been able to get both working simultaneously. Is this possible? 
 I init the logging like: 
 ret_code_t err_code = NRF_LOG_INIT(NULL); APP_ERROR_CHECK(err_code); 
 NRF_LOG_DEFAULT_BACKENDS_INIT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Nov 2021 07:22:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81476/nrf_log_info-and-printf" /><item><title>RE: NRF_LOG_INFO and printf</title><link>https://devzone.nordicsemi.com/thread/338051?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 07:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1baa13d4-8742-48e2-9447-d06103ae11de</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;i would suggest you to use NRF_LOG even for everything to have a consistent behavior. Trying to access uart directly without NRF_LOG knowing might cause unpredictable behavior since NRF_LOG buffers the logs before flushing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG_INFO and printf</title><link>https://devzone.nordicsemi.com/thread/337995?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 16:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14a13a10-4b5f-411e-9b5d-9d92c0ee7d89</guid><dc:creator>nrf_user</dc:creator><description>&lt;p&gt;Thank you, that makes sense.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions for how to nrf log to uart while also being able to write directly to uart?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG_INFO and printf</title><link>https://devzone.nordicsemi.com/thread/337835?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 08:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41d95160-7f64-418a-99b7-fea7ccd52194</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;They do not seem to work together as printf uses retarget.c file which uses app_uart library and NRF_LOG uses its own usage of nrf_drv_uart directly. Could be a conflict in both usage if retarget and NRF_LOG are working on the same instance of the uart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>