requestLogger
requestLogger(
options?):MiddlewareFn
Defined in: src/middleware/index.ts:35
Logs request timing to the console (or a provided logger). Logged URLs are
redacted like the client’s own (redactUrl): query values and userinfo
credentials are replaced with [redacted]. Middleware can’t see the
client’s redactQuery setting, so pass redactQuery: false here too to
log raw URLs.
Parameters
Section titled “Parameters”options?
Section titled “options?”(msg, meta) => void
redactQuery?
Section titled “redactQuery?”boolean
Default
trueReturns
Section titled “Returns”Example
Section titled “Example”client.use(requestLogger());