From a2fa860f0c435fa3e9c166c54f01fb36e4c15216 Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Wed, 4 Jun 2025 09:24:46 +0200 Subject: [PATCH] Make logfile name configurable --- interface/cuvis.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }