diff --git a/index.js b/index.js index 6b58622..06eb5a7 100644 --- a/index.js +++ b/index.js @@ -153,7 +153,7 @@ const ExpressLoggerFactory = function (service, level, express = null, options) }); // Morgan to track the response. // express.use(morgan(':date[iso] :id :http-version :method :referrer :remote-addr :remote-user :req[Auth] :url :status :res[content-length] - :response-time ms :user-agent')); - express.use(morgan(`:date[iso] [response] [:id] [${serviceName}] [${apiLogLevel}] [:method] [:remote-addr] [:url] [:status] [:res[content-length]] [:response-time ms] [:user-agent]`, { "stream": loggerStream })); + express.use(morgan(`:date[iso] [response] [:id] [${serviceName}] [${apiLogLevel}] [:method] [:remote-addr] [:url] [:status] [:res[content-length]] [:response-time] [:user-agent]`, { "stream": loggerStream })); // express.use(morgan(morganFormat)); } // if (!logger) { diff --git a/package-lock.json b/package-lock.json index 0ff27e7..9b5e9bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "motifer", - "version": "1.2.4", + "version": "1.2.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "motifer", - "version": "1.2.4", + "version": "1.2.5", "license": "Apache License 2.0", "dependencies": { "elastic-apm-node": "^3.29.0", diff --git a/package.json b/package.json index 7db0135..b70db3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "motifer", - "version": "1.2.4", + "version": "1.2.5", "description": "Generic logs pattern manager for express, built on top of winston.", "main": "index.js", "scripts": {