Configures logging services in the DI container.
Registers the root logger as a singleton and optionally sets up scoped loggers that auto-enrich with request context.
the ServiceCollection to register with
ServiceCollection
the root logger instance
const server = new ServerBuilder() .services((svc) => { configureLogging(svc, logger); }) .build(); Copy
const server = new ServerBuilder() .services((svc) => { configureLogging(svc, logger); }) .build();
Configures logging services in the DI container.
Registers the root logger as a singleton and optionally sets up scoped loggers that auto-enrich with request context.