<?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>Save Log Module output to a file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105229/save-log-module-output-to-a-file</link><description>Hi, 
 
 We&amp;#39;re running NRF5340 with a 8MB flash attached to it. We would like to save log messages to a file in device memory. We have configured successfully littleFS to work with external flash. I think it should be possible to use a custom backend to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Nov 2023 07:41:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105229/save-log-module-output-to-a-file" /><item><title>RE: Save Log Module output to a file</title><link>https://devzone.nordicsemi.com/thread/454583?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 07:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:149ba4dc-05bb-43bc-b4a9-78cfcc601b1d</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Glad to hear it worked for you. If you could set the post to verfied answear it would be awesome. It could help others if they have the same question in the future.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save Log Module output to a file</title><link>https://devzone.nordicsemi.com/thread/454496?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 14:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93ca7c1f-b2ae-40aa-ac19-11ddd557df67</guid><dc:creator>Deus Matei [EMERSON]</dc:creator><description>&lt;p&gt;Thank you ! This worked for me!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Save Log Module output to a file</title><link>https://devzone.nordicsemi.com/thread/453421?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 07:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc44b07f-3e61-417c-9508-42baa722c6d4</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi, Deus&lt;/p&gt;
&lt;p&gt;This should be possible, Zephyr has support for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/logging/index.html#logging-backends"&gt;custom backends&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Kconfig seting&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_BACKEND_FS"&gt;CONFIG_LOG_BACKEND_FS&lt;/a&gt; should be used&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So you will need to set the following in prj.conf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_BACKEND_FS=y
CONFIG_LOG_BACKEND_FS_FILE_SIZE=
CONFIG_LOG_BACKEND_FS_FILES_LIMIT=
CONFIG_LOG_BACKEND_FS_DIR=
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>