Read the statement by Michael Teeuw here.
notifications & logging
-
I’m having a heck of a time understanding how to even START getting notifications…
In my module, I have the very basic of notification received routines.
notificationReceived(notification, payload, sender) { Log.info('I See You'); },
It’s not logging. I place log statements elsewhere, and no logging is occurring anywhere.
So, I guess, I need help to figure out how to trigger logs correctly, and then how to actually get notifications.
Anyone wanna tackle this?
-
@BKeyport those are in the front end modulename.js, so those entries are in the dev window console.
you can use MMM-Logging to capture and save those to stdout from npm start
my fork also captures warn, error and info
and can capture from browser on remote machine
https://github.com/sdetweil/MMM-Logging -
@BKeyport there are a flood of notifications happening
-
@sdetweil I see that. How to get the log to go to the log visible to
pm2 logs
? -
@BKeyport have to add the MMM-Logging module
-
@BKeyport ther are two logs
the node_helper logs to stdout from npm start or pm2 (which does an npm start via the script pm2 starts)
the modulesname.js runs in the browser and logs to the browser log