<?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>BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124504/ble-logging-not-showing-inf-and-dbg</link><description>Hi, i am working on the nrf5280, and I have set up BLE with NUS so I have a shell and logging over BLE, as well as logging over UART. I have a python script running that connects and is able to send shell commands and that works great. However, it will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Oct 2025 00:01:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124504/ble-logging-not-showing-inf-and-dbg" /><item><title>RE: BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/thread/550406?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 00:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f5700f8-85f1-490a-9daa-7612e809d0d6</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For now I have decided to just send the command from the python app automatically when it first connects&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/thread/550378?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2025 14:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b63d31aa-d663-4fc2-b076-c94db7eacd70</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Hi, sorry you are correct, those would just enable logs from the BT modules.&lt;br /&gt;Unfortunately, I can&amp;#39;t find any built in Kconfig that would enable this. So, your best bet is to do this in app&lt;span&gt;&amp;nbsp;if you don&amp;#39;t want to let the python script handle it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I suggest taking a look at your&amp;nbsp;\zephyr\include\zephyr\shell folder&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t tested this yet but something like this might work.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/shell/shell_backend.h&amp;gt;
#include &amp;lt;zephyr/shell/shell.h&amp;gt;

static int raise_all_shells_to_dbg(void)
{
    int n = shell_backend_count_get();
    for (int i = 0; i &amp;lt; n; ++i) {
        const struct shell *sh = shell_backend_get(i);
        if (sh) {
            shell_execute_cmd(sh, &amp;quot;log enable dbg&amp;quot;);
        }
    }
    return 0;
}

&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Let me know if you succeed&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/thread/550235?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 14:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a238c30-a332-42ae-8558-7b6d8bbe02cd</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have been playing around with this and am still having the same issue, nothing in the documentation has helped.&lt;br /&gt;&lt;br /&gt;I tried the kconfigs you suggested, they enable dbg messages from the BT modules (like bt_conn and bt_hci_core)&amp;nbsp; but I don&amp;#39;t want those, I just want the messages from my app, which is what the logging on uart shows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/thread/549589?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 14:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:670826a9-ce22-4485-b2e8-5fe933e9597d</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Can you try enabling&amp;nbsp;CONFIG_BT_NUS_CLIENT_LOG_LEVEL_DBG=y and&amp;nbsp;CONFIG_BT_LOG_LEVEL_DBG=y?&lt;br /&gt;&lt;br /&gt;Also refer to this documentation on the logging module&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.1/page/zephyr/services/logging/index.html#logging_in_a_module"&gt;Logging&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/thread/549585?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 14:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f563fe14-65ef-4740-ae9f-46a011a04090</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;Running &amp;quot;log enable dbg&amp;quot; works, and right now I can have my python script that runs on the PC side automatically send that once it connects, but I&amp;#39;d prefer to have the device set the config. is it possible to do it with kconfigs or programatically?&lt;br /&gt;&lt;br /&gt;I tried doing it programatically similar to how I have changed the log level during runtime for things coming over the uart but it didn&amp;#39;t work the same, I&amp;#39;m assuming for the reason you gave earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE logging not showing inf and dbg</title><link>https://devzone.nordicsemi.com/thread/549439?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 12:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7992d68e-927b-4620-a781-1e7ce667869b</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Can you add&amp;nbsp;CONFIG_LOG_RUNTIME_FILTERING=y and then at runtime, use this command: &amp;quot;log enable dbg&amp;quot;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;CONFIG_LOG_MAX_LEVEL&lt;/span&gt;&lt;span&gt;=4&amp;nbsp;&lt;/span&gt;and &lt;span&gt;CONFIG_LOG_DEFAULT_LEVEL&lt;/span&gt;&lt;span&gt;=3&amp;nbsp;&lt;/span&gt;&amp;nbsp;ensure DBG/INF logs are compiled in, but each backend may still apply its own filter. The UART backend usually prints all level while NUS shell seems to default at ERR/WRN.&lt;br /&gt;&lt;br /&gt;If this doesn&amp;#39;t work, try to run &amp;quot;&lt;span&gt;log status&amp;quot; to see the status of your logging modules.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>