mirror of
https://github.com/bitinflow/server.git
synced 2026-03-14 05:55:53 +00:00
use bookrc for logging
This commit is contained in:
13
bookrc.js
Normal file
13
bookrc.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/// bookrc logging setup
|
||||
var log = require('book').default();
|
||||
|
||||
log.use(require('book-git')(__dirname));
|
||||
log.use(require('book-raven')(process.env.SENTRY_DSN));
|
||||
|
||||
process.once('uncaughtException', function(err) {
|
||||
log.panic(err);
|
||||
setTimeout(process.exit.bind(process, 1), 2000);
|
||||
});
|
||||
|
||||
module.exports = log;
|
||||
|
||||
Reference in New Issue
Block a user