log QML Value Type
Severity level constants. More...
| Import Statement: | import QtRos2.RclInterfaces |
| Status: | Experimental Extension |
Properties
- file : string
- function : string
- level : uint8_t
- line : uint32_t
- msg : string
- name : string
- stamp : time
Detailed Description
These logging levels follow the Python Standard https://docs.python.org/3/library/logging.html#logging-levels And are implemented in rcutils as well https://github.com/ros2/rcutils/blob/35f29850064e0c33a4063cbc947ebbfeada11dba/include/rcutils/logging.h#L164-L172 This leaves space for other standard logging levels to be inserted in the middle in the future, as well as custom user defined levels. Since there are several other logging enumeration standard for different implementations, other logging implementations may need to provide level mappings to match their internal implementations.
log is a structured value type usable in QML. It maps directly to the rcl_interfaces::msg::Log ROS 2 message type.
Construct a log in QML by assigning a JavaScript object whose keys are its component properties, or by setting those properties individually.
See also LogPublisher and LogSubscriber.
Property Documentation
file : string
The file the message came from.
function : string
The function the message came from.
level : uint8_t
Corresponding log level, see above definitions.
line : uint32_t
The line in the file the message came from.
msg : string
The full log message.
name : string
The name representing the logger this message came from.
stamp : time
Timestamp when this message was generated by the node.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.