interface RequestLoggerOptions
Since 0.1.0

Properties

readonly
optional
slowRequestThreshold: number

Requests slower than this (ms) trigger a warn entry. Defaults to 5000.

readonly
optional
excludePaths: readonly PathPattern[]

Paths to skip logging (e.g. ['/health']). A string is an EXACT match; a RegExp is tested against the path.

Default: [] — nothing is skipped, unchanged.

Usage

import { type RequestLoggerOptions } from "logger-plugin/src/index.ts";