update logging format
This commit is contained in:
parent
54a7aee5e5
commit
4a9e00e476
@ -15,8 +15,10 @@
|
|||||||
|
|
||||||
var express= require('express')
|
var express= require('express')
|
||||||
, app = express.createServer(
|
, app = express.createServer(
|
||||||
express.logger({buffer:true,
|
express.logger({
|
||||||
format:'[:req[X-Real-IP] > :req[Host] @ :date] \033[90m:method\033[0m \033[36m:url\033[0m \033[90m:status :response-time ms -> :res[Content-Type]\033[0m'}))
|
buffer: true,
|
||||||
|
format: '[:date] :req[X-Real-IP] \033[90m:method\033[0m \033[36m:req[Host]: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')
|
||||||
|
Loading…
Reference in New Issue
Block a user