You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In libcosim(py) the log level can be set using e.g. log_output_level( CosimLogLevel.ERROR). When the level is set to CosimLogLevel.FATAL, nothing is reported any more (in my model I added a logStatusFatal message, but that and all lesser level messages are not reported).
The other log levels are reported, but there are three confusing issues:
the log levels do not directly correspond to the suggested FMI2 log levels (which are only suggestions)
FMI2 log levels 'warning' and 'discard' seem to be switched: CosimLogLevel.INFO leaves out discard, but includes warning, even if discard should be a higher level message according to FMI2
There dies not seem to be a difference between CosimLogLevel.INFO and CosimLogLevel.WARNING (same logStatus* reported)
Can these be better aligned with FMI2 suggested log levels?
The text was updated successfully, but these errors were encountered:
Need to do some testing to know for sure, but this appears to be an upstream issue. libcosimpy is essentially a direct wrapper of libcosimc and passes any received value from cosim_log_set_output_level. Logic in libcosimpy maps the received integer to a python enum which seems to align with current libcosimc enum definition that has not been modified in a while. I find it more likely that the issue is related to libcosim or libcosimc unless the received values from libcosimc are correct. Definitely an issue that should be looked into, but probably not libcosimpy related
In libcosim(py) the log level can be set using e.g. log_output_level( CosimLogLevel.ERROR). When the level is set to CosimLogLevel.FATAL, nothing is reported any more (in my model I added a logStatusFatal message, but that and all lesser level messages are not reported).
The other log levels are reported, but there are three confusing issues:
Can these be better aligned with FMI2 suggested log levels?
The text was updated successfully, but these errors were encountered: