Add console-stamp to node-logger

This commit is contained in:
rejas 2020-05-11 07:23:21 +02:00
parent 9461c1692a
commit 367233c318
2 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,6 @@ var path = require("path");
// Alias modules mentioned in package.js under _moduleAliases.
require("module-alias/register");
// add timestamps in front of log messages
require("console-stamp")(console, "yyyy-mm-dd HH:MM:ss.l");
// Get version number.
global.version = JSON.parse(fs.readFileSync("package.json", "utf8")).version;
console.log("Starting MagicMirror: v" + global.version);

View File

@ -8,6 +8,9 @@
*/
(function (root, factory) {
if (typeof exports === 'object') {
// add timestamps in front of log messages
require("console-stamp")(console, "yyyy-mm-dd HH:MM:ss.l");
// Node, CommonJS-like
module.exports = factory(root.config);
} else {