mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Add UTC timestamp to console log
This commit is contained in:
parent
1ff51822df
commit
a6aae70a55
@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
*This release is scheduled to be released on 2020-01-01.*
|
||||
|
||||
### Added
|
||||
- Timestamps in log output
|
||||
|
||||
### Updated
|
||||
|
||||
|
@ -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);
|
||||
|
@ -57,6 +57,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"colors": "^1.1.2",
|
||||
"console-stamp": "^0.2.9",
|
||||
"electron": "^3.0.13",
|
||||
"express": "^4.16.2",
|
||||
"express-ipfilter": "^1.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user