void syten::EnvVars::init_env_var | ( | char const * | name, |
Target & | target, | ||
std::string const & | msg = "" |
||
) |
Sets target
to str
, with str
initialised from the environment variable name
, if set.
If msg
is set, then also prints msg
.
References std::getenv(), and syten::logGI().