chore(): update default logger examples

This commit is contained in:
tiagosiebler
2025-01-24 15:41:34 +00:00
parent a4945d1caf
commit 0d20822483
6 changed files with 9 additions and 26 deletions

View File

@@ -4,10 +4,10 @@ import { DefaultLogger, WS_KEY_MAP, WebsocketClient } from '../src';
// or
// import { DefaultLogger, WS_KEY_MAP, WebsocketClient } from 'bybit-api';
// Create & inject a custom logger to disable the silly logging level (empty function)
// Create & inject a custom logger to enable the trace logging level (empty function)
const logger = {
...DefaultLogger,
silly: () => {},
// trace: (...params) => console.log('trace', ...params),
};
const key = process.env.API_KEY;