Skip to content

Commit

Permalink
Move logger example to correct place in docs
Browse files Browse the repository at this point in the history
I suspect the logger example came right after the `logger` option docs initially, and the `Promise` and `tls` options were added later, inadvertently splitting the logger docs in two.

At any rate, I think it makes more sense this way. I also indented the example.
  • Loading branch information
nfriedly authored Aug 22, 2023
1 parent 79093b9 commit a2226ee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/memcache-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@ const client = new MemcacheClient(options);
- `dangleSocketWaitTimeout` - **_optional_** How long to wait for errors on dangle socket before destroying it. DEFAULT: 5 minutes (30000 milliseconds)
- `compressor` - **_optional_** a custom compressor for compressing the data. See [data compression](#data-compression) for more details.
- `logger` - **_optional_** Custom logger like this:
```js
module.exports = {
debug: (msg) => console.log(msg),
info: (msg) => console.log(msg),
warn: (msg) => console.warn(msg),
error: (msg) => console.error(msg)
};
```
- `Promise` - **_optional_** Internally this module will try to find `bluebird` in your `node_modules` and fallback to `global.Promise`. You can set this option to force the Promise to use.
- `tls` - **_optional_** If set, defines the TLS options to make the client connect to server in TLS mode
```js
module.exports = {
debug: (msg) => console.log(msg),
info: (msg) => console.log(msg),
warn: (msg) => console.warn(msg),
error: (msg) => console.error(msg)
};
```
#### `connectTimeout`
Expand Down

0 comments on commit a2226ee

Please sign in to comment.