<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Integrate logging framework]]></title><description><![CDATA[<p dir="auto">What do you think about using a logging framework like <a href="https://github.com/dustinblackman/winston" target="_blank" rel="noopener noreferrer nofollow ugc">winston</a> (the fork in the link seems to work with electron)?</p>
<p dir="auto">I don’t know if my debugging methods are wrong, but currently I’m debugging with a ssh session, having <code>tail -f</code> for error and out logs (or <code>pm2 log</code>) and via web browser console to my mirror’s IP on port 8080 to catch logs from the main application, the <code>node_helper</code> and a fetcher class.</p>
<p dir="auto">In my opinion this method kinda inconvenient. I’d like to have all logs (even the ones from fetcher modules and <code>node_helper</code> modules) in one place.</p>
<p dir="auto"><strong>If anyone has a better debugging method I’d appreciate any help and advice.</strong><br />
If all of you are doing it like me, I’d start integrating a logging framework for the whole node.js application, which covers global logging over modules and make a PR when ready (and of course if <a class="plugin-mentions-user plugin-mentions-a" href="/user/michmich" aria-label="Profile: MichMich">@<bdi>MichMich</bdi></a> wants this).</p>
<p dir="auto">What do you think? Or do you have any advices for me?</p>
]]></description><link>https://forum.magicmirror.builders/topic/949/integrate-logging-framework</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 22:37:19 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/949.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Nov 2016 22:00:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Integrate logging framework on Fri, 09 Jun 2017 00:07:09 GMT]]></title><description><![CDATA[<p dir="auto">Any update?</p>
]]></description><link>https://forum.magicmirror.builders/post/22511</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22511</guid><dc:creator><![CDATA[alberttwong]]></dc:creator><pubDate>Fri, 09 Jun 2017 00:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Integrate logging framework on Tue, 08 Nov 2016 19:26:15 GMT]]></title><description><![CDATA[<p dir="auto">I agree this should be improved. In the front end I already used a placeholder/proxy which we can simply adjust. (See the Log object).</p>
<p dir="auto">In the backend such a proxy is not yet available. I think the best approach is adding a similar proxy so that we easily can swap out any 3rd party framework.</p>
]]></description><link>https://forum.magicmirror.builders/post/7669</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/7669</guid><dc:creator><![CDATA[MichMich]]></dc:creator><pubDate>Tue, 08 Nov 2016 19:26:15 GMT</pubDate></item></channel></rss>