mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
Use logtrail :)
This commit is contained in:
parent
ccefc604bf
commit
b85da6ef2b
10
lib/app.js
10
lib/app.js
@ -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, {
|
||||
|
@ -50,6 +50,7 @@
|
||||
"hiredis": "latest",
|
||||
"jade": "latest",
|
||||
"load-grunt-tasks": "latest",
|
||||
"logtrail": "0.0.1-1",
|
||||
"moment": "latest",
|
||||
"mongodb": "latest",
|
||||
"mongoose": "latest",
|
||||
|
Loading…
Reference in New Issue
Block a user