Skip to content

Commit b85d50d

Browse files
committed
docs: update readme to include log levels
1 parent 018ce3b commit b85d50d

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,28 +67,20 @@ blapi.manualPost(guildCount, botID, apiKeys[, shardID, shardCount[, shardsArray]
6767

6868
### Logging Options
6969
```js
70-
// Use this to get more detailed logging when posting
71-
// Errors will always be logged
70+
// Use this to set the level of logs you're interested in
71+
// By default, warnings and errors will be logged
7272
blapi.setLogging({
73-
extended: true
73+
logLevel: LogLevel.All
7474
});
7575
```
7676

7777
```js
7878
// If you have your own logger that you want to use pass it to BLAPI like this:
7979
// Important: The logger needs to include the following methods: log.info(), log.warn() and log.error()
8080
blapi.setLogging({
81-
extended: true,
8281
logger: yourCustomLogger
8382
})
8483
```
85-
```js
86-
// If you only want to pass your custom logger but dont want extended logging to be enabled:
87-
blapi.setLogging({
88-
logger: yourCustomLogger
89-
})
90-
```
91-
9284

9385
### Turn off the use of the BotBlock API
9486

0 commit comments

Comments
 (0)