Middleware
ContextMiddleware
// Add the middleware to your Express application
app.use(contextMiddleware);
// You can now get the current requestId from everywhere
getRequestContext()?.requestId // string | undefinedLoggerSetupMiddleware
// Add the middleware to your Express application
app.use(loggerEndpointMiddleware);LoggerEndpointMiddleware
Last updated