Function eCAL::Config::GeteCALLogDirImpl

Function Documentation

std::string eCAL::Config::GeteCALLogDirImpl(const Util::IDirProvider &dir_provider_ = Util::DirProvider(), const Util::IDirManager &dir_manager_ = Util::DirManager(), const eCAL::Configuration &config_ = eCAL::GetConfiguration())

Returns the path to the eCAL log directory. Searches in following order:

   1. Environment variable ECAL_LOG_DIR
   2. Environment variable ECAL_DATA (also checking for logs subdirectory)
   3. The path provided from the configuration
   4. The path where ecal.yaml was loaded from (also checking for logs subdirectory)
   5. The temporary directory (e.g. /tmp [unix], Appdata/local/Temp [win])
   6. Fallback path /ecal_tmp

   In case of 5/6, a unique temporary folder will be created.

Returns:

The path to the eCAL log directory. The subdirectory logs might not exist yet. Returns empty string if no root path could be found.