mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Option to set log format from python
This commit is contained in:
@@ -718,6 +718,14 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
|
|||||||
Logger::SetOutput(0, &ifcopenshell_log_stream);
|
Logger::SetOutput(0, &ifcopenshell_log_stream);
|
||||||
Logger::Verbosity(Logger::LOG_WARNING);
|
Logger::Verbosity(Logger::LOG_WARNING);
|
||||||
}
|
}
|
||||||
|
void set_log_format_json() {
|
||||||
|
ifcopenshell_log_stream.str("");
|
||||||
|
Logger::OutputFormat(Logger::FMT_JSON);
|
||||||
|
}
|
||||||
|
void set_log_format_text() {
|
||||||
|
ifcopenshell_log_stream.str("");
|
||||||
|
Logger::OutputFormat(Logger::FMT_PLAIN);
|
||||||
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|||||||
Reference in New Issue
Block a user