2 Commits

Author SHA1 Message Date
alex 937253f7aa sends iss output to logfile if logfile is specified 2025-08-22 17:55:29 +02:00
alex 98df7d2a74 ties iss logging level to command line setting 2025-08-22 17:54:31 +02:00
+4
View File
@@ -99,14 +99,18 @@ int main(int argc, char* argv[]) {
LOGGER(DEFAULT)::print_time() = false;
LOGGER(connection)::print_time() = false;
LOGGER(dbt_rise_iss)::print_time() = false;
auto l = logging::as_log_level(clim["verbose"].as<int>());
LOGGER(DEFAULT)::reporting_level() = l;
LOGGER(connection)::reporting_level() = l;
LOGGER(dbt_rise_iss)::reporting_level() = l;
if(clim.count("logfile")) {
// configure the connection logger
auto f = fopen(clim["logfile"].as<std::string>().c_str(), "w");
LOG_OUTPUT(DEFAULT)::stream() = f;
LOG_OUTPUT(connection)::stream() = f;
LOG_OUTPUT(dbt_rise_iss)::stream() = f;
}
std::vector<iss::vm_plugin*> plugin_list;