MCPcopy Create free account
hub / github.com/angular/dev-infra / getLogLevel

Function getLogLevel

ng-dev/utils/logging.ts:97–103  ·  view source on GitHub ↗

* Retrieve the log level from environment variables, if the value found * based on the LOG_LEVEL environment variable is undefined, return the default * logging level.

()

Source from the content-addressed store, hash-verified

95 * logging level.
96 */
97function getLogLevel(): LogLevel {
98 const logLevel = Object.keys(LogLevel).indexOf((process.env[`LOG_LEVEL`] || '').toUpperCase());
99 if (logLevel === -1) {
100 return DEFAULT_LOG_LEVEL;
101 }
102 return logLevel;
103}
104
105/**
106 * The number of columns used in the prepended log level information on each line of the logging

Callers 1

runConsoleCommandFunction · 0.85

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected