diff --git a/interface/cuvis.hpp b/interface/cuvis.hpp index a9cc8fb..6bafdcb 100644 --- a/interface/cuvis.hpp +++ b/interface/cuvis.hpp @@ -758,7 +758,7 @@ namespace cuvis /** * @copydoc cuvis_init */ - static void init(std::string const& settings_path, int global_loglevel = 4); + static void init(std::string const& settings_path, int global_loglevel = 4, std ::string logfile_name = ""); /** * @copydoc cuvis_shutdown */ @@ -2607,9 +2607,9 @@ namespace cuvis return std::string(version); } - inline void General::init(std::string const& settings_path, int global_loglevel) + inline void General::init(std::string const& settings_path, int global_loglevel, std::string logfile_name) { - chk(cuvis_init(settings_path.c_str(), global_loglevel)); + chk(cuvis_init(settings_path.c_str(), global_loglevel, logfile_name.empty() ? NULL : logfile_name.c_str())); return; }