Libraries
    Preparing search index...

    Function configureLogging

    • 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.

      Parameters

      • services: any

        the ServiceCollection to register with

      • logger: Logger

        the root logger instance

      Returns void

      const server = new ServerBuilder()
      .services((svc) => {
      configureLogging(svc, logger);
      })
      .build();