createLoggingMiddleware
createLoggingMiddleware(
config):Middleware
Defined in: packages/middleware/src/logging.ts:199
Create logging middleware.
Logs requests, responses, and errors at configurable levels.
Parameters
Section titled “Parameters”config
Section titled “config”LoggingConfig = {}
Logging configuration
Returns
Section titled “Returns”Logging middleware
Example
Section titled “Example”const logging = createLoggingMiddleware({ level: 'info', logRequests: true, logResponses: true, sanitize: true});
bridge.use(logging);