Function getValidatedBasicConfig
- getValidatedBasicConfig(variables?): ValueObject<{
environment: (() => "test" | "development" | "production");
fullDevLogs: (() => boolean);
healthEndpointPort: (() => number);
isDev: (() => boolean);
isProd: (() => boolean);
logLevel: (() => "" | "FATAL" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE");
logMaskKeywords: (() => string[]);
logMaskMaxDepth: (() => number);
secureLoggingMode: (() => MaskMode);
serviceId: (() => string);
}>
-
Parameters
-
variables: Dict<undefined | string> = process.env
Returns ValueObject<{
environment: (() => "test" | "development" | "production");
fullDevLogs: (() => boolean);
healthEndpointPort: (() => number);
isDev: (() => boolean);
isProd: (() => boolean);
logLevel: (() => "" | "FATAL" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE");
logMaskKeywords: (() => string[]);
logMaskMaxDepth: (() => number);
secureLoggingMode: (() => MaskMode);
serviceId: (() => string);
}>
Get the basic, validated configuration object.