| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1 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;
}
|