This function retrieves the echo setting from the environment variable "ECHO_LOGGIT2".
If the environment variable is set, it will be used as the echo setting.
If the environment variable is not set, the echo setting will be set to the default value.