add host to log

This commit is contained in:
Simon Tokumine 2011-12-13 10:13:55 +00:00
parent 9c6619f3e0
commit c59e7964d0

View File

@ -16,7 +16,7 @@
var express= require('express') var express= require('express')
, app = express.createServer( , app = express.createServer(
express.logger({buffer:true, express.logger({buffer:true,
format:'[:req[X-Real-IP] :date] \033[90m:method\033[0m \033[36m:url\033[0m \033[90m:status :response-time ms -> :res[Content-Type]\033[0m'})) format:'[:req[X-Real-IP] - :req[http_host] :date] \033[90m:method\033[0m \033[36m:url\033[0m \033[90m:status :response-time ms -> :res[Content-Type]\033[0m'}))
, Step = require('step') , Step = require('step')
, Meta = require(global.settings.app_root + '/app/models/metadata') , Meta = require(global.settings.app_root + '/app/models/metadata')
, oAuth = require(global.settings.app_root + '/app/models/oauth') , oAuth = require(global.settings.app_root + '/app/models/oauth')