Skip to content

Commit

Permalink
Merge pull request #19 from nfriedly/nfriedly-logger-doc-fix
Browse files Browse the repository at this point in the history
Move logger example to correct place in docs
  • Loading branch information
smuthya authored Aug 23, 2023
2 parents 79093b9 + a2226ee commit c8b8621
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 c8b8621

Please sign in to comment.