chore(): readme update

This commit is contained in:
tiagosiebler
2025-03-04 11:10:18 +00:00
parent 5a513ea64e
commit 212d171237
2 changed files with 2 additions and 2 deletions

View File

@@ -510,7 +510,7 @@ Important: do not subscribe to the same topics on both clients or you will recei
### Customise logging ### Customise logging
Pass a custom logger (or mutate the imported DefaultLogger class) which supports the log methods `silly`, `debug`, `notice`, `info`, `warning` and `error`, or override methods from the default logger as desired, as in the example below: Pass a custom logger (or mutate the imported DefaultLogger class) which supports the log methods `trace`, `info` and `error`, or override methods from the default logger as desired, as in the example below:
```javascript ```javascript
const { WebsocketClient, DefaultLogger } = require('bybit-api'); const { WebsocketClient, DefaultLogger } = require('bybit-api');

View File

@@ -26,7 +26,7 @@ const restClient = new RestClientV5({
demoTrading: true, demoTrading: true,
}); });
// Optional, uncomment the "silly" override to log a lot more info about what the WS client is doing // Optional, uncomment the "trace" override to log a lot more info about what the WS client is doing
const customLogger = { const customLogger = {
...DefaultLogger, ...DefaultLogger,
// trace: (...params) => console.log('trace', ...params), // trace: (...params) => console.log('trace', ...params),