@gvray/logger / LogMiddleware
Type Alias: LogMiddleware
LogMiddleware = (
ctx,next) =>void
Defined in: types.ts:93
Middleware function in the logging pipeline.
Receives the LogContext and a next callback. Mutate ctx.args (or other fields) then call next() to continue the pipeline. Calling next() is what forwards the log to output (and subsequent middleware).
Parameters
ctx
next
() => void
Returns
void