<?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>Capturing logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119412/capturing-logging</link><description>Hi there, 
 I want to capture all the logs made by Zephyr and printk() calls. I want to forward these logs via USB using our custom application protocol for debugging purposes. 
 I first looked into using the dummy shell backend, but I don&amp;#39;t think it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2025 14:41:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119412/capturing-logging" /><item><title>RE: Capturing logging</title><link>https://devzone.nordicsemi.com/thread/525311?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 14:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:567ca979-a8b9-47cc-8e91-f1fe6b6cc808</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry, we do not have documentation for that.&amp;nbsp;&lt;br /&gt;You most likely need to enable&amp;nbsp;CONFIG_LOG_BACKEND_CUSTOM and&amp;nbsp;CONFIG_USB_DEVICE_STACK but we never played with this, so we cannot give you any recommendations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing logging</title><link>https://devzone.nordicsemi.com/thread/525276?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 12:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d18863-ba5b-4978-a418-8cf06ec68453</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;I do not want to use a Zephyr-provided USB logging backend as it&amp;#39;d interfere with our custom USB stack and protocol. I need a custom solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing logging</title><link>https://devzone.nordicsemi.com/thread/525273?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 12:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b41e113-fd9b-4077-8a6e-d7111cbc5021</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think you can use USB CDC ACM as backend in our solution (I never used it myself) but these configs in prj.conf should help&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG_PRINTK=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Zephyr USB Log&amp;quot;
CONFIG_USB_CDC_ACM=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
CONFIG_LOG_BACKEND_USB=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>