logRequest
logRequest(
options?):HookFunction
Defined in: log-request.ts:19
Returns a hook that logs service call duration. Register the same returned function in before.all, after.all, AND error.all. The first invocation (before phase) records the start time; the second (after or error phase) emits the log record with elapsed duration and status.
Parameters
Section titled “Parameters”options?
Section titled “options?”LogRequestOptions = {}