<?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 debug logging over serial</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43367/enable-debug-logging-over-serial</link><description>I&amp;#39;m trying to get the AT commands sent in the asset_tracker example written out together with the other printk statements. I have tried adding this to the prj.conf: CONFIG_LOG=y CONFIG_SERIAL=y CONFIG_STDOUT_CONSOLE=y CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_LTE_LINK_CONTROL_LOG_LEVEL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Feb 2019 09:04:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43367/enable-debug-logging-over-serial" /><item><title>RE: Enable debug logging over serial</title><link>https://devzone.nordicsemi.com/thread/172962?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 09:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9df7e3da-a499-4cf8-885d-9327d5a3c997</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The logging is still not working properly. I had to undef and redefine the log as printk as a temporary (and quite dirty) workaround.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable debug logging over serial</title><link>https://devzone.nordicsemi.com/thread/172312?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 13:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f613d59f-83e8-4ab3-91e7-f808e7482dfe</guid><dc:creator>Dominik Windhab</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I just tried the same thing with the mqtt example and tried to add&amp;nbsp;CONFIG_MQTT_LOG_LEVEL=4 unfortunately without success.&lt;/p&gt;
&lt;p&gt;Any updates on that issue?&lt;/p&gt;
&lt;p&gt;I tried to add the line to proj.conf but this lead to the following:&lt;/p&gt;
&lt;p&gt;warning: MQTT_LOG_LEVEL (defined at subsys\net\Kconfig.template.log_config.net:50) was assigned the&lt;br /&gt;value &amp;#39;4&amp;#39; but got the value &amp;#39;0&amp;#39;. This symbol has no prompt, meaning assignments in configuration&lt;br /&gt;files have no effect on it. It can only be set indirectly, via Kconfig defaults (e.g. in a&lt;br /&gt;Kconfig.defconfig file) or through being &amp;#39;select&amp;#39;ed or &amp;#39;imply&amp;#39;d (note: try to avoid Kconfig&lt;br /&gt;&amp;#39;select&amp;#39;s except for trivial promptless &amp;quot;helper&amp;quot; symbols without dependencies, as it ignores&lt;br /&gt;dependencies and forces symbols on). You can check symbol information (including dependencies) in&lt;br /&gt;the &amp;#39;menuconfig&amp;#39; interface (see the Application Development Primer section of the manual), or in the&lt;br /&gt;Kconfig reference at&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_MQTT_LOG_LEVEL.html"&gt;docs.zephyrproject.org/.../CONFIG_MQTT_LOG_LEVEL.html&lt;/a&gt; (which is updated&lt;br /&gt;regularly from the master branch). See the &amp;#39;Setting configuration values&amp;#39; section of the Board&lt;br /&gt;Porting Guide as well. It covers Kconfig.defconfig files.&lt;/p&gt;
&lt;p&gt;So I added something like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;config MQTT_LOG_LEVEL&lt;br /&gt;&amp;nbsp; &amp;nbsp; default 4&lt;/p&gt;
&lt;p&gt;to the Kconfig, which removed the error but does not have any effect on logging output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable debug logging over serial</title><link>https://devzone.nordicsemi.com/thread/169850?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 08:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29d771cb-d197-40b7-b19f-d6a217b4be2c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like the &amp;quot;master&amp;quot; branch is a bit under-the-weather. I cannot get the logging to work either, and I&amp;#39;ll let the NCS developers know about this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>