Added winston logging

- use logger.xxx instead of console.xxx
- added express middleware logging (using jsonl)
- added LOG_PATH as environment variable
- more configs postponed for later iteration
This commit is contained in:
Matthias Platzer
2023-07-03 17:58:41 +02:00
parent 13ad030ea0
commit a9e269b52c
9 changed files with 150 additions and 14 deletions
+2 -1
View File
@@ -58,7 +58,8 @@
"reflect-metadata": "^0.1.13",
"socket.io": "^4.6.1",
"sqlite3": "^5.1.6",
"typeorm": "^0.3.6"
"typeorm": "^0.3.6",
"winston": "^3.9.0"
},
"devDependencies": {
"@types/cors": "^2.8.12",