MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / constructor

Method constructor

examples/log-extension/src/mixins/log.mixin.ts:24–30  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

22 // A mixin class has to take in a type any[] argument!
23 // eslint-disable-next-line @typescript-eslint/no-explicit-any
24 constructor(...args: any[]) {
25 super(...args);
26 if (this.options?.logLevel) {
27 this.logLevel(this.options.logLevel);
28 }
29 this.component(LogComponent);
30 }
31
32 /**
33 * Set minimum logLevel to be displayed.

Callers

nothing calls this directly

Calls 2

logLevelMethod · 0.80
componentMethod · 0.65

Tested by

no test coverage detected