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 * based on the LOG_LEVEL environment variable is undefined, return the default
96 * logging level.
97 */
98function getLogLevel(): LogLevel {
99 const logLevel = Object.keys(LogLevel).indexOf((process.env[`LOG_LEVEL`] || '').toUpperCase());
100 if (logLevel === -1) {
101 return DEFAULT_LOG_LEVEL;
102 }
103 return logLevel;
104}
105
106/**

Callers 1

runConsoleCommandFunction · 0.85

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected