Skip to content

No FATAL log messages #13

@eisDNV

Description

@eisDNV

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:

  1. the log levels do not directly correspond to the suggested FMI2 log levels (which are only suggestions)
  2. 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
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions