{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/ae818b7d058343c1ad6caf8deee2e430\" frameborder=\"0\" width=\"1108\" height=\"831\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":831,"width":1108,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":831,"thumbnail_width":1108,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/ae818b7d058343c1ad6caf8deee2e430-00001.gif","duration":300.03,"title":"Improving Logging and Shaping Response in Node.js","description":"Hey there! In this Loom, I'll walk you through some improvements I made to a standard Node.js file. I'll show you how to enhance logging using a small logger package and shape the response to make it more readable. I'll also demonstrate how to log the prompt, system messages, content, and response, and how to preserve these logs throughout the codebase. Additionally, I'll discuss some nuances to be aware of and a convenient feature for stringification. Finally, I'll explain how to push the logs to a production storage instead of storing them locally. So, let's dive in and make our Node.js file more efficient and organized!"}