<?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>How to set current log level</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79500/how-to-set-current-log-level</link><description>Hi, 
 I&amp;#39;m using the CLI and have logging enabled. The only way I&amp;#39;m able to see my logging output is if I type &amp;quot;log enable info&amp;quot; at the CLI prompt. 
 Is there a way to enable this level of output without having to type this in at the CLI prompt everytime</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Oct 2021 14:36:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79500/how-to-set-current-log-level" /><item><title>RE: How to set current log level</title><link>https://devzone.nordicsemi.com/thread/332178?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 14:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b20c6a8-1852-44e4-b061-8584ab8dc26b</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;I resolved this issue.&amp;nbsp; Moved&amp;nbsp;NRF_LOG_INIT to before&amp;nbsp;nrf_cli_init, and it all works now.&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set current log level</title><link>https://devzone.nordicsemi.com/thread/331560?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 14:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c442b233-8a2f-4ba1-8775-802fbb8ad502</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;Does anyone know how to get log output for a module without typing into the CLI?&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set current log level</title><link>https://devzone.nordicsemi.com/thread/330730?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 22:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a311bcc-37ab-4ce7-bc6f-18325df4d2d8</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I&amp;#39;ve added the following defines to sdk_config.h -&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;APP_CONFIG_LOG_LEVEL&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;APP_CONFIG_LOG_ENABLED&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;but still do not get any log output by default.&amp;nbsp; A &amp;quot;log status&amp;quot; at the CLI shows this for the app module -&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;module_name | current | built-in&lt;br /&gt;----------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;...&lt;br /&gt;app&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | none&amp;nbsp; &amp;nbsp; | debug&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; How do I get the &amp;quot;current&amp;quot; field of the app module to default to debug without typing &amp;quot;log enable debug&amp;quot; each time I start up my code?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; Thanks...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Brian&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set current log level</title><link>https://devzone.nordicsemi.com/thread/329469?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 13:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94afd4e1-e0c5-406c-ba13-5415e35e7c37</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In nRF5 SDK, the state of logging through the Command Line Interface (CLI) is connected to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fgroup__nrf__log.html"&gt;Logger module&lt;/a&gt; and its &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fgroup__nrf__log__config.html"&gt;configuration&lt;/a&gt;, as well as the configuration of each individual module. The configuration values are found in the sdk_config.h file of the project, with names such as &lt;code&gt;NRF_SDH_LOG_ENABLED&lt;/code&gt; and &lt;code&gt;NRF_SDH_LOG_LEVEL&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>