Yoji SHIDARA
null+****@clear*****
Wed Aug 15 12:27:53 JST 2012
Yoji SHIDARA 2012-08-15 12:27:53 +0900 (Wed, 15 Aug 2012) New Revision: f7bac7f73f24ad7b607e96f3c62a80cf8a020f52 https://github.com/groonga/gcs/commit/f7bac7f73f24ad7b607e96f3c62a80cf8a020f52 Log: Output logs Modified files: lib/server.js Modified: lib/server.js (+9 -0) =================================================================== --- lib/server.js 2012-08-15 12:18:23 +0900 (ac28a73) +++ lib/server.js 2012-08-15 12:27:53 +0900 (3510171) @@ -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); }); -------------- next part -------------- HTML����������������������������... Download