Opened 7 years ago

Closed 23 months ago

#2426 closed enhancement (fixed)

Activating debug logging in pyfmi

Reported by: Iakov Nakhimovski Owned by: Christian Andersson
Priority: major Milestone: Future
Component: PyFMI Version: trunk
Keywords: Cc:

Description

Currently one has to issue:

FMUModel.set_fmil_log_level(5)
FMUModel.set_debug_logging(True)
FMUModel.set(’_log_level’, 5) # only for JModelica

In order to activate debug logging from run-time. It'd be convenient to have a single "set_log_level" function that would unify this. The new logging categories from FMI 2.0 should preferably also be taken into account when designing the function.

Change History (5)

comment:1 Changed 7 years ago by Christian Andersson

Milestone: PyFMI-1.2.xPyFMI-2.0.x

comment:2 Changed 6 years ago by Tove Bergdahl

Owner: set to Christian Andersson
Status: newassigned

comment:3 Changed 6 years ago by Christian Andersson

Milestone: PyFMI-1.4.xFuture

comment:4 Changed 2 years ago by Jesper Mattsson

Is this still valid.

comment:5 Changed 23 months ago by Christian Andersson

Resolution: fixed
Status: assignedclosed

The current workflow is as follow:

model = load_fmu("..", log_level=[0-8])
model.set("_log_level", [0-8])

Note: See TracTickets for help on using tickets.