From 65ea341ed062662a6db48984ebfcf48e519c3cdc Mon Sep 17 00:00:00 2001 From: Rico Date: Mon, 3 Feb 2020 21:39:46 +0100 Subject: [PATCH 1/2] 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. --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 08612dd8..ef66a44c 100644 --- a/js/app.js +++ b/js/app.js @@ -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; From e160f9a0f6f470515f70a581524c962b74e657dc Mon Sep 17 00:00:00 2001 From: Rico Date: Mon, 3 Feb 2020 21:43:45 +0100 Subject: [PATCH 2/2] docs: add info about changed timestamp in changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d22bbc2..be681cbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Removed `run-start.sh` script and update start commands: - To start using electron, use `npm run start`. - To start in server only mode, use `npm run server`. +- Timestamp in log output now also contains the date ## [2.10.1] - 2020-01-10