Merge pull request #1361 from log4js-node/update-docs

docs: updated typescript usage
This commit is contained in:
Lam Wei Li 2023-01-18 16:38:38 +08:00 committed by GitHub
commit cfab25c881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ There's also [an example application](https://github.com/log4js-node/log4js-exam
## TypeScript
```ts
import log4js from "log4js";
import * as log4js from "log4js";
log4js.configure({
appenders: { cheese: { type: "file", filename: "cheese.log" } },
categories: { default: { appenders: ["cheese"], level: "error" } },