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

Method logLevel

examples/log-extension/src/mixins/log.mixin.ts:42–44  ·  view source on GitHub ↗

* Set minimum logLevel to be displayed. * * @param level - The log level to set for @log decorator * * @example * ```ts * app.logLevel(LOG_LEVEL.INFO); * ```

(level: LOG_LEVEL)

Source from the content-addressed store, hash-verified

40 * ```
41 */
42 logLevel(level: LOG_LEVEL) {
43 this.bind(EXAMPLE_LOG_BINDINGS.APP_LOG_LEVEL).to(level);
44 }
45 };
46}

Callers 7

constructorMethod · 0.80
log.mixin.unit.tsFile · 0.80
setAppLogToDebugFunction · 0.80
setAppLogToWarnFunction · 0.80
setAppLogToErrorFunction · 0.80
setAppLogToInfoFunction · 0.80
setAppLogToOffFunction · 0.80

Calls 2

toMethod · 0.80
bindMethod · 0.45

Tested by 5

setAppLogToDebugFunction · 0.64
setAppLogToWarnFunction · 0.64
setAppLogToErrorFunction · 0.64
setAppLogToInfoFunction · 0.64
setAppLogToOffFunction · 0.64