Skip to content

Commit

Permalink
removed ms postfix from response time
Browse files Browse the repository at this point in the history
  • Loading branch information
sumahajanankur committed May 12, 2022
1 parent d05fbf9 commit dd93771
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit dd93771

Please sign in to comment.