<?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>issue about NCS Logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92208/issue-about-ncs-logging</link><description>Dear Nordic Engineers 
 I have a problem with NCS Logging and would like to ask you. 
 I would like to print two different level of Log. 
 For example, I have two backend RTT and FS. I would like to use RTT to print DBG level Log, use FS to print INF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2022 13:26:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92208/issue-about-ncs-logging" /><item><title>RE: issue about NCS Logging</title><link>https://devzone.nordicsemi.com/thread/387702?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 13:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67a1955-b4da-4aa9-bacd-3f09eb181a8e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Update: Good news, I was wrong.&lt;/p&gt;
&lt;p&gt;Our developers tell me that:&lt;/p&gt;
&lt;p&gt;&amp;quot;You can do that but you need to enable runtime filtering CONFIG_LOG_RUNTIME_FILTERING=y &lt;br /&gt; then log_backend_enable() enables backend with given upper level. Also there is log_filter_set function which configures level for each logging source and backend. This is nicely handled in shell, see `log enable` command.&amp;quot;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue about NCS Logging</title><link>https://devzone.nordicsemi.com/thread/387653?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 10:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e06d5f0-ddbd-43c2-bf39-c31098e41b84</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Wang,&lt;/p&gt;
&lt;p&gt;We do not have any such functionality.&lt;/p&gt;
&lt;p&gt;Maybe create one project configuration for developement, with log levels set to DBG. &lt;br /&gt;Then also have one project configuration for release, with log levels set to INF?&lt;/p&gt;
&lt;p&gt;You can see that this is what is done in our Application samples. See for example &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/applications/nrf_desktop/README.html#nrf-desktop-build-types"&gt;nRF Desktop Build Types&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you need different log levels in your logging, a solution would be to fork the zephyr part of the nRF Connect SDK and make changes to &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.1.99-ncs1/subsys/logging"&gt;zephyr/subsys/logging&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue about NCS Logging</title><link>https://devzone.nordicsemi.com/thread/387514?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 13:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984484f1-173f-41c9-a895-c1226f86b955</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will look into this and return with more information tomorrow.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>