Use logtrail :)

This commit is contained in:
Matej Kramny 2014-08-31 18:58:31 +01:00
parent ccefc604bf
commit b85da6ef2b
2 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,7 @@ var express = require('express')
, bugsnag = require('bugsnag')
, socketPassport = require('passport.socketio')
, bodyParser = require('body-parser')
, logtrail = require('logtrail');
var app = exports.app = express();
@ -27,6 +28,15 @@ if (config.production) {
require('newrelic');
}
logtrail.configure({
timestamps: {
enabled: false
},
stacktrace: true,
basedir: __dirname
});
console.log = logtrail.log.bind(logtrail);
var releaseStage = config.production ? "production" : "development";
bugsnag.register(config.credentials.bugsnag_key, {

View File

@ -50,6 +50,7 @@
"hiredis": "latest",
"jade": "latest",
"load-grunt-tasks": "latest",
"logtrail": "0.0.1-1",
"moment": "latest",
"mongodb": "latest",
"mongoose": "latest",