mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
Add UTC timestamp to console log
This commit is contained in:
parent
1ff51822df
commit
a6aae70a55
3 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,9 @@ var Utils = require(__dirname + "/utils.js");
|
|||
var defaultModules = require(__dirname + "/../modules/default/defaultmodules.js");
|
||||
var path = require("path");
|
||||
|
||||
// add timestamps in front of log messages
|
||||
require('console-stamp')(console, 'HH:MM:ss.l');
|
||||
|
||||
// Get version number.
|
||||
global.version = JSON.parse(fs.readFileSync("package.json", "utf8")).version;
|
||||
console.log("Starting MagicMirror: v" + global.version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue