<?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[console.Log() shows nothing?]]></title><description><![CDATA[<p dir="auto">Today I started learning to develop MM modules. I have gone through the node.js tutorial on <a href="http://tutorialspoint.com" target="_blank" rel="noopener noreferrer nofollow ugc">tutorialspoint.com</a>.<br />
I have worked a little bit in javascript before, and recalled the console.Log() being vital when developing, for debugging purpose.<br />
For some reason, no matter what I do, I cant see any of my logs in the terminal. Shouldn’t this be working out of the box, or do i need to set something up in order to get logging to work?</p>
]]></description><link>https://forum.magicmirror.builders/topic/1833/console-log-shows-nothing</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 17:19:29 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1833.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Feb 2017 18:54:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to console.Log() shows nothing? on Sat, 02 Oct 2021 20:36:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/easty" aria-label="Profile: easty">@<bdi>easty</bdi></a> if u want to setup using pm2, then there is another script on my page,   down at the bottom</p>
<p dir="auto"><a href="http://fixuppm2.sh" target="_blank" rel="noopener noreferrer nofollow ugc">fixuppm2.sh</a></p>
]]></description><link>https://forum.magicmirror.builders/post/95097</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95097</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 02 Oct 2021 20:36:09 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Sat, 02 Oct 2021 20:34:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I haven’t installed pm2, I’m updating files through the file manager and using visual code editor. I couldn’t see console logging of node helper through the browser based developer tools but could see it through MM output in its terminal window. So thank you for showing me how to enable logging, that made a big difference.</p>
<p dir="auto">I’ve got the module working again - seems like since yesterday, its decided not to like using https but works find with unsecure http. Through a browser that http link works fine through http or https so was difficult to figure out. Not sure if something changed with the website or with MM http. Most likely the website.</p>
<p dir="auto">Anyway, appreciate the help!</p>
]]></description><link>https://forum.magicmirror.builders/post/95096</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95096</guid><dc:creator><![CDATA[easty]]></dc:creator><pubDate>Sat, 02 Oct 2021 20:34:47 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Sat, 02 Oct 2021 19:36:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/easty" aria-label="Profile: easty">@<bdi>easty</bdi></a>  u  are using pm2 to launch mm.</p>
<p dir="auto">so open a terminal window and do</p>
<p dir="auto">pm2 status<br />
pm2 stop x</p>
<p dir="auto">where x is the name (MagicMirror if you used my install script})<br />
or the number in the row of output</p>
<p dir="auto">u don’t have to reinstall</p>
<p dir="auto">pm2 info x</p>
<p dir="auto">will tell you how the process is started <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a><br />
which is what u would modify</p>
<p dir="auto">using pm2, u can also see the logs by using the command,<br />
pm2 logs --lines=???<br />
where ??? is a number, 15 by default</p>
]]></description><link>https://forum.magicmirror.builders/post/95094</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95094</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 02 Oct 2021 19:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Sat, 02 Oct 2021 19:27:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Getting error EADDRINUSE and MM is blank, though I was trying to debug a module that stopped working yesterday 1st October.</p>
<p dir="auto">At this point, I will delete and reinstall MM and wait for the module developer to update or move to an alternative. I traced the error back to http data request made by node helper js but haven’t been able to find a way to see the console.log  or <a href="http://log.info" target="_blank" rel="noopener noreferrer nofollow ugc">log.info</a> for it. The http link produces json data correctly.</p>
<p dir="auto">Edit</p>
<p dir="auto">Okay this error was to do with the module, I was curious so I deleted the folder for the module and its working again. I can see info logging in terminal.</p>
<p dir="auto">How can I see info logging for node helper js?</p>
]]></description><link>https://forum.magicmirror.builders/post/95093</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95093</guid><dc:creator><![CDATA[easty]]></dc:creator><pubDate>Sat, 02 Oct 2021 19:27:36 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Sat, 02 Oct 2021 18:42:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/easty" aria-label="Profile: easty">@<bdi>easty</bdi></a> in the script that starts mm do</p>
<p dir="auto">export ELECTRON_ENABLE_LOGGING=1</p>
<p dir="auto">or do that before u manually type npm start</p>
<p dir="auto">or use the MMM-Logging module (not mine)</p>
]]></description><link>https://forum.magicmirror.builders/post/95092</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95092</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 02 Oct 2021 18:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Sat, 02 Oct 2021 18:40:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hasbean" aria-label="Profile: hasbean">@<bdi>hasbean</bdi></a> For a complete beginner, how do you do add that statement to environment variables?</p>
]]></description><link>https://forum.magicmirror.builders/post/95091</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95091</guid><dc:creator><![CDATA[easty]]></dc:creator><pubDate>Sat, 02 Oct 2021 18:40:08 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Thu, 23 Sep 2021 09:20:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a> I know this is really 4 years old, but it was my first match on Google.  I couldn’t figure out why logs weren’t printing to terminal.</p>
<p dir="auto">Anyhow, to make Electron print to terminal, add this to the environment variables:</p>
<p dir="auto">ELECTRON_ENABLE_LOGGING=1</p>
<p dir="auto">Hope it helps others!</p>
]]></description><link>https://forum.magicmirror.builders/post/94782</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94782</guid><dc:creator><![CDATA[hasbean]]></dc:creator><pubDate>Thu, 23 Sep 2021 09:20:54 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Wed, 22 Feb 2017 09:56:32 GMT]]></title><description><![CDATA[<p dir="auto">Hmm… I don’t have any custom css om my develop-version of MM, but the problem is of course that you will not see the pointer when moving over to the “mirror” if you are using a mouse.<br />
You can add a custom.css with only:</p>
<pre><code class="language-css">body {
  cursor: pointer;
 }
</code></pre>
<p dir="auto">then you will see where you “are” when moving the mouse. :)<br />
But you should not need anything else.</p>
]]></description><link>https://forum.magicmirror.builders/post/15362</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15362</guid><dc:creator><![CDATA[Snille]]></dc:creator><pubDate>Wed, 22 Feb 2017 09:56:32 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Wed, 22 Feb 2017 09:44:37 GMT]]></title><description><![CDATA[<p dir="auto">Found the error. I needed to add</p>
<p dir="auto">.region.fullscreen {<br />
z-index: -1;<br />
}</p>
<p dir="auto">as css and now it is working.</p>
]]></description><link>https://forum.magicmirror.builders/post/15361</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15361</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Wed, 22 Feb 2017 09:44:37 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 23:48:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/snille" aria-label="Profile: Snille">@<bdi>Snille</bdi></a> I have looked at your button module for inspiration. Do you know why nothing happens when I click the button?</p>
]]></description><link>https://forum.magicmirror.builders/post/15338</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15338</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Tue, 21 Feb 2017 23:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 23:02:28 GMT]]></title><description><![CDATA[<p dir="auto">Thank you once again for your help. Now that I understand where to see the logs, i can see that my button is not working. Anybody who knows why nothing happens when I click the button</p>
<pre><code>Module.register("MMM-Slider",{

	// Default module config.
	defaults: {
		//text: "Hello World!"

	},

	// Override dom generator.
	getDom: function() {
		var wrapper = document.createElement("div");
		
		wrapper.appendChild(this.createButton());
		return wrapper;
	},
	
	createButton: function() {
		var button = document.createElement("span");
		button.innerHTML ="Click me";
		button.id = this.identifier + "_button";
		
		button.addEventListener("click", function () {
			console.log("The button was clicked");
		});

		return button;
	}
	
});
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/15326</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15326</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Tue, 21 Feb 2017 23:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:42:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a> just a note if you put a console.log() in the node_helper, then it apears on the command line output (or PM2 out.log if you are using PM2)</p>
]]></description><link>https://forum.magicmirror.builders/post/15316</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15316</guid><dc:creator><![CDATA[izanbard]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:41:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> said in <a href="/post/15310">console.Log() shows nothing?</a>:</p>
<blockquote>
<p dir="auto">npm start dev</p>
</blockquote>
<p dir="auto">Thank you very much, both of you. Now I can see the logs.</p>
]]></description><link>https://forum.magicmirror.builders/post/15315</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15315</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:41:34 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:37:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a><br />
Just to add, because I found this irritating at first:<br />
If your browser does not open the console in dev mode then press F12 (works in every common browser) and look at the error/warning/log output there</p>
<p dir="auto">Ah, <a class="plugin-mentions-user plugin-mentions-a" href="/user/izanbard" aria-label="Profile: izanbard">@<bdi>izanbard</bdi></a> was faster :-)</p>
]]></description><link>https://forum.magicmirror.builders/post/15314</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15314</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:37:32 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:35:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a> these console.log() statements are not crated in the node application, but in the browser.  Open the mirror in a main stream browser (IE or chrome or something) and hit F12 which will bring up the dev tools look in the console there for your message.</p>
]]></description><link>https://forum.magicmirror.builders/post/15312</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15312</guid><dc:creator><![CDATA[izanbard]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:35:02 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:33:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a> the module doesnt log in the terminal only the node_helper does. The module logs into electron or your browser start the mirror wih <code>npm start dev</code></p>
]]></description><link>https://forum.magicmirror.builders/post/15310</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15310</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:31:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> said in <a href="/post/15303">console.Log() shows nothing?</a>:</p>
<blockquote>
<p dir="auto">console.log(“Debug Message”);</p>
</blockquote>
<p dir="auto">Thanks for your reply. The “Log” in the title was a mistake.<br />
the console.log(); doesnth work either.</p>
<pre><code>

Module.register("MMM-Slider",{

	// Default module config.
	defaults: {
		//text: "Hello World!"

	},

	// Override dom generator.
	getDom: function() {
		console.log("Test");
		var wrapper = document.createElement("div");
		
		wrapper.appendChild(createButton());
		return wrapper;
	},
	
	start: function() {
		console.log("Debug Message");

	},
	
	createButton: function() {
		//Create the button
		var button = document.createElement("button");
		button.innerHTML ="Click me";

		button.addEventListener("click", function() {
  			console.log("Visiting show URL");
		});

		return button;
	}
	
});
</code></pre>
<p dir="auto">The above code was my simple attempt to create a button. The button is created, but nothing happens when i click it, and nothing is shown when MagicMirror is started.</p>
<pre><code>Starting MagicMirror: v2.1.0
Loading config ...
Loading module helpers ...
No helper found for module: alert.
No helper found for module: MMM-ProfileSwitcher.
Initializing new module helper ...
No helper found for module: clock.
No helper found for module: MMM-Slider.
Initializing new module helper ...
No helper found for module: compliments.
No helper found for module: weatherforecast.
All module helpers loaded.
Starting server op port 8080 ... 
Server started ...
Connecting socket for: updatenotification
Connecting socket for: calendar
Starting node helper for: calendar
Sockets connected &amp; modules started ...
Launching application.
Create new calendar fetcher for url: http://springschedule.au.dk/ical/ical.asp?objectclass=student&amp;id=xxxxxx - Interval: 300000

</code></pre>
<p dir="auto">Shouldn’t the logs be visible in the command line?</p>
]]></description><link>https://forum.magicmirror.builders/post/15308</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15308</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:31:37 GMT</pubDate></item><item><title><![CDATA[Reply to console.Log() shows nothing? on Tue, 21 Feb 2017 21:11:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a> it is case sensitive try using <code>console.log("Debug Message");</code></p>
]]></description><link>https://forum.magicmirror.builders/post/15303</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15303</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Tue, 21 Feb 2017 21:11:11 GMT</pubDate></item></channel></rss>