1.0.0 • Published 9 years ago
log-uncaught-exceptions v1.0.0
log-uncaught-exceptions
Logs uncaught process exceptions to the given logger (ideally a Bunyan logger but works with any object with a fatal method).
Installation
npm install log-uncaught-exceptionsUsage
// CommonJS
// const logUncaughtExceptions = require('log-uncaught-exceptions');
// ES6
import logUncaughtExceptions from 'log-uncaught-exceptions/es';
import bunyan from 'bunyan';
const logger = bunyan.createLogger({ name: "myapp" });
logUncaughtExceptions({ logger });Testing
Clone the repository and execute:
npm testContribute
- Fork it:
git clone https://github.com/softonic/log-uncaught-exceptions.git - Create your feature branch:
git checkout -b feature/my-new-feature - Commit your changes:
git commit -am 'Added some feature' - Check the build:
npm run build - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
1.0.0
9 years ago