ifcopenshell.ifcopenshell_wrapper.turn_on_detailed_logging()

This commit is contained in:
Thomas Krijnen
2021-11-25 15:23:14 +01:00
parent 75ffc4454d
commit d7b27c0620
+8
View File
@@ -687,6 +687,14 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
ifcopenshell_log_stream.str("");
return log;
}
void turn_on_detailed_logging() {
Logger::SetOutput(&std::cout, &std::cout);
Logger::Verbosity(Logger::LOG_DEBUG);
}
void turn_off_detailed_logging() {
Logger::SetOutput(0, &ifcopenshell_log_stream);
Logger::Verbosity(Logger::LOG_WARNING);
}
%}
%{