Starting with version 4.9, the Apache Software Foundation owns and maintains the NodeJS driver. For the latest version, visit github.com/apache/cassandra-nodejs-driver
constrequestLogger=newRequestLogger({slowThreshold:1000});requestLogger.emitter.on('show',message=>console.log(message));// Add the requestLogger to the client optionsconstclient=newClient({contactPoints,requestTracker:requestLogger});
Determines whether it should emit ‘normal’ events for every
EXECUTE, QUERY and BATCH request executed successfully, useful only for debugging. This option can be modified
after the client is connected using the property RequestLogger#logNormalRequests.
Determines whether it should emit ‘failure’ events for every
EXECUTE, QUERY and BATCH request execution that resulted in an error. This option can be modified
after the client is connected using the property RequestLogger#logErroredRequests.
In the case of prepared or unprepared query executions, the provided
query string. For batch requests, an Array containing the queries and parameters provided.
An array containing [seconds, nanoseconds] tuple, where nanoseconds is the
remaining part of the real time that can’t be represented in second precision (see process.hrtime()).
In the case of prepared or unprepared query executions, the provided
query string. For batch requests, an Array containing the queries and parameters provided.
An array containing [seconds, nanoseconds] tuple, where nanoseconds is the
remaining part of the real time that can’t be represented in second precision (see process.hrtime()).