Documentation / @agentick/gateway / loggingPlugin
Function: loggingPlugin()
loggingPlugin(
config?):GatewayPlugin
Defined in: gateway/src/plugins/logging.ts:187
Gateway plugin that logs lifecycle events.
NOTE: This does NOT log individual HTTP requests — the PluginContext lacks a request interceptor hook. Use loggingMiddleware() for HTTP logging. See module docstring for details.
Parameters
config?
Returns
Example
typescript
// Default — uses Logger.for("logging")
gateway.use(loggingPlugin());
// Custom logger with specific transport
gateway.use(loggingPlugin({
logger: Logger.create({
level: 'debug',
transport: { target: 'pino-pretty', options: { colorize: true } },
}),
}));
// Skip client events
gateway.use(loggingPlugin({ exclude: ["client"] }));