From d7b27c0620a6beea4725eb4c6d1f79a1f8d19297 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 25 Nov 2021 15:23:14 +0100 Subject: [PATCH] ifcopenshell.ifcopenshell_wrapper.turn_on_detailed_logging() --- src/ifcwrap/IfcParseWrapper.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index 1f2270f182..93fc951475 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -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); + } %} %{