Files
PX4-Autopilot/docs/en/msg_docs/LogMessage.md
PX4BuildBot be784e21f7 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-05-27 02:57:43 +00:00

43 lines
1.4 KiB
Markdown

---
pageClass: is-wide-page
---
# LogMessage (UORB message)
A logging message, output with PX4_WARN, PX4_ERR, PX4_INFO.
**TOPICS:** log_message
## Fields
| Name | Type | Unit [Frame] | Range/Enum | Description |
| ----------------------------------- | ----------- | ------------ | ---------- | -------------------------------------------------------- |
| <a id="fld_timestamp"></a>timestamp | `uint64` | | | time since system start (microseconds) |
| <a id="fld_severity"></a>severity | `uint8` | | | log level (same as in the linux kernel, starting with 0) |
| <a id="fld_text"></a>text | `char[127]` | | |
## Constants
| Name | Type | Value | Description |
| ----------------------------------------------- | ------- | ----- | ----------- |
| <a id="#ORB_QUEUE_LENGTH"></a> ORB_QUEUE_LENGTH | `uint8` | 4 |
## Source Message
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/LogMessage.msg)
::: details Click here to see original file
```c
# A logging message, output with PX4_WARN, PX4_ERR, PX4_INFO
uint64 timestamp # time since system start (microseconds)
uint8 severity # log level (same as in the linux kernel, starting with 0)
char[127] text
uint8 ORB_QUEUE_LENGTH = 4
```
:::