<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Peter Engineer</title>
    <description>The latest articles on Forem by Peter Engineer (@codefibers).</description>
    <link>https://forem.com/codefibers</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1379761%2Fe73aa4f7-95be-4604-934d-ffa5aef990fe.jpg</url>
      <title>Forem: Peter Engineer</title>
      <link>https://forem.com/codefibers</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/codefibers"/>
    <language>en</language>
    <item>
      <title>VS Code app logs browser UI</title>
      <dc:creator>Peter Engineer</dc:creator>
      <pubDate>Sun, 24 Mar 2024 17:27:33 +0000</pubDate>
      <link>https://forem.com/codefibers/vs-code-app-logs-browser-ui-2e7g</link>
      <guid>https://forem.com/codefibers/vs-code-app-logs-browser-ui-2e7g</guid>
      <description>&lt;p&gt;In this blog post I'm going to present, how you can enable an embedded side-by-side view for Logdy in VS Code without having to install additional extensions.&lt;/p&gt;

&lt;p&gt;You can forget about messy terminal filled with lines of logs. &lt;a href="https://logdy.dev"&gt;Meet Logdy.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd02kzci16ftk4y9lspig.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd02kzci16ftk4y9lspig.png" alt="VS Code + Logdy side-by-side view" width="800" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Logdy
&lt;/h2&gt;

&lt;p&gt;Enter &lt;a href="https://logdy.dev/docs/quick-start"&gt;Quick Start&lt;/a&gt; page and install Logdy (download precompiled binary). Additionally, I recommend adding Logdy to $PATH for easier use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start your web app
&lt;/h2&gt;

&lt;p&gt;Let's assume you normally use &lt;code&gt;node app.js&lt;/code&gt; to start your application (of course you can use Logdy with auto-reloading tools like &lt;code&gt;nodemon&lt;/code&gt;) and your app is producing logging information to standard output. &lt;/p&gt;

&lt;p&gt;Start Logdy like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ node app.js | logdy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Open Logdy in VS Code
&lt;/h2&gt;

&lt;p&gt;Now that your app is up and running, go to Visual Studio Code and open command (Ctrl + Shift + P) "Simple Browser: Show"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9bion1ibgt7uvy29w0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9bion1ibgt7uvy29w0w.png" alt="Simple Browser: Show" width="800" height="345"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, enter the address of Logdy UI (by default it will be &lt;a href="http://localhost:8080"&gt;http://localhost:8080&lt;/a&gt;). A new tab should open with Logdy UI.&lt;/p&gt;

&lt;p&gt;The last step is to arrange the newly open tab to side-by-side view by dragging it.&lt;/p&gt;

&lt;p&gt;That's all, you can now use Logdy directly from within VS Code without having to switch windows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiz0o3i5nalxplbk0njuo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiz0o3i5nalxplbk0njuo.png" alt="Logdy side by side" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
