Skip to content

Commit

Permalink
Output logs
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 15, 2012
1 parent 4c32320 commit f7bac7f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ exports.createServer = function (config) {
application.use(express.bodyParser());
application.set('views', __dirname + '/../views');
application.use(express.static(__dirname + '/../public'));

application.configure(function() {
application.enable('jsonp callback');
});

application.configure('development', function(){
application.use(express.logger('development'));
})

application.configure('production', function(){
application.use(express.logger('default'));
})

api.versions.forEach(function(version) {
api[version].registerHandlers(application, context, config);
});
Expand Down

0 comments on commit f7bac7f

Please sign in to comment.