* 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.
()
| 95 | * logging level. |
| 96 | */ |
| 97 | function 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 |
no test coverage detected