Skip to content

Commit f363ada

Browse files
authored
Merge pull request #205 from matrix-org/hs/type-logging
Port Logging to Typescript
2 parents 88e9bef + a754296 commit f363ada

File tree

6 files changed

+111
-156
lines changed

6 files changed

+111
-156
lines changed

changelog.d/205.misc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Typescriptify ConfigValidator
1+
Port Logging to Typescript. This change makes `winston`, `winston-daily-rotate-file` and `chalk` a required dependency.

changelog.d/206.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Typescriptify ConfigValidator

package-lock.json

+17-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"dependencies": {
3131
"@types/express": "^4.17.7",
3232
"bluebird": "^3.7.2",
33+
"chalk": "^4.1.0",
3334
"extend": "^3.0.2",
3435
"is-my-json-valid": "^2.20.5",
3536
"js-yaml": "^3.14.0",
@@ -38,7 +39,9 @@
3839
"nedb": "^1.8.0",
3940
"nopt": "^4.0.3",
4041
"p-queue": "^6.6.0",
41-
"prom-client": "^12.0.0"
42+
"prom-client": "^12.0.0",
43+
"winston": "^3.3.3",
44+
"winston-daily-rotate-file": "^4.5.0"
4245
},
4346
"devDependencies": {
4447
"@types/bluebird": "^3.5.32",
@@ -52,11 +55,7 @@
5255
"jasmine": "^3.6.0",
5356
"jsdoc": "^3.6.5",
5457
"nyc": "^15.1.0",
55-
"typescript": "^3.9.7"
56-
},
57-
"optionalDependencies": {
58-
"chalk": "^4.1.0",
59-
"winston": "^3.3.3",
60-
"winston-daily-rotate-file": "^4.5.0"
58+
"typescript": "^3.9.7",
59+
"winston-transport": "^4.4.0"
6160
}
6261
}

0 commit comments

Comments
 (0)