Vereda
    Preparing search index...

    Function requestLogger

    • 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

      • Optionaloptions: {
            log?: (msg: string, meta: Record<string, unknown>) => void;
            redactQuery?: boolean;
        }
        • Optionallog?: (msg: string, meta: Record<string, unknown>) => void
        • OptionalredactQuery?: boolean
          true
          

      Returns MiddlewareFn

      client.use(requestLogger());