<?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>Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93772/enable-and-disable-different-log-level-from-zephyr-cli-using-zephyr-logging-api</link><description>Hi, Is it possible to enable and Different log level from Zephyr cli using Zephyr Logging API? i am using 
 
 LOG_MODULE_REGISTER (AWS, 3 ); 
 I want to change or register new level using CLI. Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Nov 2022 00:13:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93772/enable-and-disable-different-log-level-from-zephyr-cli-using-zephyr-logging-api" /><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/397033?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 00:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b374ae0-02e3-4bbc-8455-f5c5dde634ac</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Waqar,&lt;/p&gt;
&lt;p&gt;No, so far I haven&amp;#39;t&amp;nbsp;implemented it myself.&amp;nbsp;I&amp;#39;m attending some training this week, so I have little time to&amp;nbsp;work on cases.&lt;/p&gt;
&lt;p&gt;If you still need help with this in a few days, let me know and I can try to help with the implementation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/395923?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2022 09:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492c27fc-0c19-499c-b133-99f0d26f9d45</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;Have you implemented Runtime filtering? if yes give me some idea&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/395818?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 14:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b92e8688-70b1-4280-9afc-c6a89e29d354</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Waqar, you&amp;#39;re completely right. Runtime filtering is fully supported, clearly stated here:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/services/logging/index.html"&gt;https://docs.zephyrproject.org/latest/services/logging/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Though I don&amp;#39;t see any references to available shell commands in the docs.&amp;nbsp;Thanks for making me aware, and let me know if you have further issues.&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/395741?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 10:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c3e17f2-4bf3-413e-966f-9b1383dc46c8</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;br /&gt;Yes you are right.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Logs can also be compiled in but filtered on run time using dedicate API. Run time filtering is independent for each backend and each source of log messages. Source of log messages can be a module or specific instance of the module.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/395725?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 09:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db8cb79-cacb-4ac0-9fa7-ff5b811d566e</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I have not a get a chance to implement in firmware. May b you are right. I will try it today.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/395645?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 20:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:300e4340-49e6-42a1-9944-0f428b8e0358</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Waqar, so you were&amp;nbsp;able to achieve this?&lt;/p&gt;
&lt;p&gt;Thanks for letting me know, I was certain that this wasn&amp;#39;t going to be possible. The LOG statements in Zephyr are preprocessor macros, and&amp;nbsp;reducing the log level for a module will normally ensure that the lower priority log statement don&amp;#39;t get compiled into the image at all, so I didn&amp;#39;t see how they could be reenabled&amp;nbsp;through the Zephyr shell.&lt;/p&gt;
&lt;p&gt;Thanks for sharing!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul Pathak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable and Disable different log level from zephyr CLI using Zephyr Logging API</title><link>https://devzone.nordicsemi.com/thread/395424?ContentTypeID=1</link><pubDate>Sat, 12 Nov 2022 23:11:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ecbc7b-2fa2-4581-b807-eaf5124fd8d0</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I have in dept studied the zephyr Logging module we can use achieve this using zephyr built in logging Api.&lt;br /&gt;by setting following configuration&amp;nbsp;&lt;br /&gt;CONFIG_LOG_CMDS=y&lt;br /&gt;and config logging immediate/deferred etc.&lt;/p&gt;
&lt;p&gt;we can set different logging level.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;C:\v1.9.0\zephyr\subsys\logging&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>