An EnvironmentType associated with the current application runtime environment.
Helper method that gets the log level current set as the log level threshold for what is sent to the console
during runtime. The log level returned is calculated using the value stored in process.env.LOG_THRESHOLD
.
If there is no value present, defaults to LogLevelType.INFO.
A LogLevelType associated with the current application log threshold.
Sets the node process's current work directory.
The directory to set as the current working directory.
Sets the node process's NODE_ENV variable, which is used to indicate what environment the process is
currently running in.
The environment to set the application as running on.
Sets the node process' LOG_THRESHOLD variable, which is used to indicate what log levels are displayed to the
console during application runtime.
A LogLevelType that indicates what level of logs and higher that
should be displayed on the console.
Sets the node process' LOG_THRESHOLD variable, which is used to indicate what log levels are displayed to the
console during application runtime.
A string that indicates what level of logs
and higher that should be displayed on the console.
Generated using TypeDoc
Helper method that gets the EnvironmentType from the node process. The environment type returned is
calculated using the value stored in
process.env.NODE_ENV
. If there is no value present, defaults toEnvironmentType.DEVELOPMENT.
{Error} An error is thrown when a string that does not map to a valid EnvironmentType is stored in
the
process.env.NODE_ENV
.