MCPcopy
hub / github.com/nestjs/nest / applyLogger

Method applyLogger

packages/testing/testing-module.ts:110–115  ·  view source on GitHub ↗
(options: NestApplicationContextOptions | undefined)

Source from the content-addressed store, hash-verified

108 }
109
110 private applyLogger(options: NestApplicationContextOptions | undefined) {
111 if (!options || isUndefined(options.logger)) {
112 return;
113 }
114 Logger.overrideLogger(options.logger);
115 }
116
117 private createAdapterProxy<T>(app: NestApplication, adapter: HttpServer): T {
118 return new Proxy(app, {

Callers 2

createNestApplicationMethod · 0.95

Calls 2

isUndefinedFunction · 0.90
overrideLoggerMethod · 0.80

Tested by

no test coverage detected