Code coverage report for core/src/internal/debug-env.ts

Statements: 100% (11 / 11)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (11 / 11)      Ignored: none     

All files » core/src/internal/ » debug-env.ts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 211 1 1     1     1 1 1     7   1 1   1    
import {APM_ENV} from '../apm';
import {LOG_ENV, LogLevel} from '../log';
import {BASE_ROOT} from './log';
 
 
const TRUE = 'true';
 
 
export function debugEnv(): Record<string, string> {
  const env: Record<string, string> = {};
  [
    ...Object.values(LOG_ENV),
    ...Object.values(APM_ENV),
  ].map(key => env[key] = TRUE);
 
  env[BASE_ROOT] = TRUE;
  env[LOG_ENV.level] = LogLevel.DEBUG.name;
 
  return env;
}