Upgrade log4js to v0.5

This commit is contained in:
Marcel Klehr 2012-09-21 21:39:08 +02:00
parent 4416210471
commit ff7cf991c9
3 changed files with 9 additions and 4 deletions

View file

@ -95,6 +95,7 @@ exports.expressConfigure = function (hook_name, args, cb) {
// Not installing the log4js connect logger when the log level has a higher severity than INFO since it would not log at that level anyway.
if (!(settings.loglevel === "WARN" || settings.loglevel == "ERROR"))
args.app.use(log4js.connectLogger(httpLogger, { level: log4js.levels.INFO, format: ':status, :method :url'}));
args.app.use(express.cookieParser());
/* Do not let express create the session, so that we can retain a