importappfrom'express';app.use(httpLogger({whitelists: ["/public/*"]// An array of paths to exclude being logged if neededloggable: ["body"],// An array of extra propeties in the request object to log. Defaults to the following: ['path', 'method', 'query', 'params']}));// orapp.use(httpLogger({whitelists: ["/public/*"],loggable: ({headers, body}=>{// Pick the properties you want to logreturn{
headers,
body
}}),}));