<?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>I am not able to set log level dynamically within app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115628/i-am-not-able-to-set-log-level-dynamically-within-app</link><description>Hi, 
 I&amp;#39;d like to set log level within the app but without success. I am browsing through https://docs.nordicsemi.com/bundle/ncs-2.5.2/page/zephyr/services/logging/index.html but I am not sure what I am doing wrong. 
 I have a 9161 based custom board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2024 10:40:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115628/i-am-not-able-to-set-log-level-dynamically-within-app" /><item><title>RE: I am not able to set log level dynamically within app</title><link>https://devzone.nordicsemi.com/thread/507709?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 10:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:483ae0da-204b-4ab0-8dfb-a08e107dacf9</guid><dc:creator>marsal</dc:creator><description>&lt;div&gt;&lt;span&gt;Indeed,&amp;nbsp;log_filter_set&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;LOG_CURRENT_MODULE_ID&lt;/span&gt;&lt;span&gt;(), &lt;/span&gt;&lt;span&gt;LOG_LEVEL_NONE&lt;/span&gt;&lt;span&gt;);&amp;nbsp; did the trick&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you very much!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Martin&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am not able to set log level dynamically within app</title><link>https://devzone.nordicsemi.com/thread/507688?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 07:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01aa4603-b863-4990-97ac-daa9bd7acea3</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not completely sure, but could the issue be related to the&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.99-dev1/zephyr/reference/logging/index.html#c.log_filter_set"&gt; &lt;code&gt;log_filter_set()&lt;/code&gt;&lt;/a&gt; you defined? I noticed that you&amp;#39;re using &lt;code&gt;CONFIG_LOG_DOMAIN_ID&lt;/code&gt; for the &lt;code&gt;source_id&lt;/code&gt; parameter. You might want to try using &lt;a href="https://docs.zephyrproject.org/apidoc/latest/log__core_8h.html#a85c70bfd98bbc66a35806010a206237e:~:text=%E2%97%86-,LOG_CURRENT_MODULE_ID,-%23define%20LOG_CURRENT_MODULE_ID"&gt;LOG_CURRENT_MODULE_ID(&lt;/a&gt;&lt;code&gt;)&lt;/code&gt; to get the module&amp;#39;s &lt;code&gt;source_id&lt;/code&gt; and ensure you&amp;#39;re passing the correct value. Using &lt;code&gt;CONFIG_LOG_DOMAIN_ID&lt;/code&gt; might not be accurate if you&amp;#39;re trying to refer to a specific module (like &amp;quot;main&amp;quot;).&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am not able to set log level dynamically within app</title><link>https://devzone.nordicsemi.com/thread/507212?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 18:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ba8179-91a5-4977-bfea-832e34459eb3</guid><dc:creator>marsal</dc:creator><description>&lt;p&gt;2.6.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am not able to set log level dynamically within app</title><link>https://devzone.nordicsemi.com/thread/507211?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 18:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d76e44ad-ce93-4ea6-b43f-d4611a961101</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Letting you know that I have been assigned to this case and I have started looking into this. Could you tell me which SDK version are you using here?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>