![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bitbucket-logging
Advanced tools
A logging handler for NodeJS that opens BitBucket issues on provided exception. Forked on https://github.com/valeriansaliou/node-gitlab-logging
Node BitBucket Logging is a custom log issue handler that has been written with the purpose of auto-opening (and assigning) issues on BitBucket everytime something goes south with NodeJS code.
Useful for production deployments, where you want to track the issues directly from BitBucket, not from a dark server log file.
Node BitBucket Logging is smart enough to recognize similar errors, thus not opening blindly a new issue everytime.
Add bitbucket-logging
to your package.json dependencies.
Then, require and configure the module using the code below:
bitbucket_logging = require('bitbucket-logging');
/* GitLab options */
bitbucket_logging.configure({
//Required
slug:"PROJECT_NAME",
owner:"OWNER",
username:"USERNAME",
password:"PASSWORD",
// Optional
environment: 'production' // The NodeJS environment in use, useful when you pre-process the NODE_ENV value
});
// Boom, the error variable value will be redirected to your Bitbucket issues tracker!
bitbucket_logging.handle(error, callback);
process.on('uncaughtException', function(error) {
var error_message = error.stack || error;
// Log to console
console.error('uncaughtException', error_message);
// Pipe error to Bitbucket
bitbucket_logging.handle(error_message, function{
// Recommended: kill the NodeJS process (restart a clean one via forever)
process.exit(1);
});
});
FAQs
A logging handler for NodeJS that opens BitBucket issues on provided exception. Forked on https://github.com/valeriansaliou/node-gitlab-logging
We found that bitbucket-logging demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.