mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
Merge pull request #1361 from log4js-node/update-docs
docs: updated typescript usage
This commit is contained in:
commit
cfab25c881
@ -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" } },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user