Skip to content

Instantly share code, notes, and snippets.

@chinhnguyen
Created April 2, 2025 08:43
Show Gist options
  • Save chinhnguyen/4fa3a71395d6449a0bbca87646f30e7c to your computer and use it in GitHub Desktop.
Save chinhnguyen/4fa3a71395d6449a0bbca87646f30e7c to your computer and use it in GitHub Desktop.
Couchbase setLogger
const couchbase = require("couchbase");
couchbase.logger.setLogger((level, message) => {
console.error(`${level}: ${message}`);
});
{
"name": "couchbase-logging",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"couchbase": "^4.4.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment