OptionalenrichExtract custom properties from the request context.
OptionalexcludePaths to exclude from request logging. Accepts plain strings or objects with a path property (e.g. endpoint builders).
OptionalgetCustomize level; status is 0 if no response headers were sent.
OptionallogWhether to log request bodies.
OptionallogWhether to log when request starts (in addition to completion).
OptionallogWhether to log response bodies.
Request logging middleware configuration.