Created
April 2, 2025 08:43
-
-
Save chinhnguyen/4fa3a71395d6449a0bbca87646f30e7c to your computer and use it in GitHub Desktop.
Couchbase setLogger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const couchbase = require("couchbase"); | |
couchbase.logger.setLogger((level, message) => { | |
console.error(`${level}: ${message}`); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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