Node BitBucket 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.
Setup
-
Add
bitbucket-logging
to your package.json dependencies. -
Then, require and configure the module using the code below:
bitbucket_logging = ; /* GitLab options */bitbucket_logging;
- Then, when you need to handle an error, just call:
// Boom, the error variable value will be redirected to your Bitbucket issues tracker!bitbucket_logging;
- If you need to catch all unhandled errors (which is recommended!), use the following code:
process;
- Enjoy!
Notes
- This module is based on https://github.com/valeriansaliou/node-gitlab-logging , Valerian Saliou.
- This module is in production in the Yool Core Yool