questdb / nodejs-questdb-client

QuestDB Node.js Client
35 stars 8 forks source link

feat(nodejs): custom logging #15

Closed glasstiger closed 1 year ago

glasstiger commented 1 year ago

Extended the options of the client with a new property: log. Now the host application can pass a logging function to the client.

log: (level: 'error'|'warn'|'info'|'debug', message: string) => void

If this property not provided, default logging is used which writes to the console with logging level info.