<?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>Runtime enable/disable of log backend FS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96083/runtime-enable-disable-of-log-backend-fs</link><description>Hi, 
 in our project we want to store the device logs to a FS. 
 I managed to make it work using the implementation available in the SDK, just enabling CONFIG_LOG_BACKEND_FS and mounting the partition to which the backend will write the logs, everything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jan 2023 10:35:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96083/runtime-enable-disable-of-log-backend-fs" /><item><title>RE: Runtime enable/disable of log backend FS</title><link>https://devzone.nordicsemi.com/thread/406820?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 10:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bd32b61-7d81-41ae-96b0-47a55937eb52</guid><dc:creator>SODAQHW</dc:creator><description>&lt;p&gt;I found a solution to this problem that consists in:&lt;/p&gt;
&lt;p&gt;- Getting the pointer to log backend struct by using log_backend_get_by_name()&lt;/p&gt;
&lt;p&gt;- Using log_backend_enable/disable() to toggle the storing of the logs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>