Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LoggingRouteOptions

Hierarchy

  • LoggingRouteOptions

Index

Properties

Optional hideRequestBody

hideRequestBody: boolean

Whether to hide the body of the request from logs.

Optional hideResponseBody

hideResponseBody: boolean

Whether to hide the body of the response from logs.

Optional logFunction

logFunction: (msg: string) => void

Function to log requests with (defaults to console.log).

Type declaration

    • (msg: string): void
    • Parameters

      • msg: string

      Returns void

Optional logRequestHeaders

logRequestHeaders: true | string[]

true to log all request headers or an array of the names of headers to log.

Optional logResponseHeaders

logResponseHeaders: true | string[]

true to log all response headers or an array of the names of headers to log.

Generated using TypeDoc