mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
feat: use date in log timestamp
I find it quite hard to look something up in the logs, when there is no date in the log file. The time itself is not sufficient for debugging, hence I suggest also logging the date.
This commit is contained in:
parent
1315aceb44
commit
65ea341ed0
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ var path = require("path");
|
|||
require("module-alias/register");
|
||||
|
||||
// add timestamps in front of log messages
|
||||
require("console-stamp")(console, "HH:MM:ss.l");
|
||||
require("console-stamp")(console, "yyyy-mm-dd HH:MM:ss.l");
|
||||
|
||||
// Get version number.
|
||||
global.version = JSON.parse(fs.readFileSync("package.json", "utf8")).version;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue