mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Merge pull request #1916 from d-Rickyy-b/log-date-timestamp
Log date timestamp
This commit is contained in:
commit
4abb790e12
@ -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
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user