|
CX Framework
Cross-platform C utility framework
|
#include <logwire.h>
Data Fields | |
| int | level |
| Severity the sender logged it at. | |
| strref | chanpath |
| Channel path the sender logged it to. | |
| flags_t | chanflags |
| The channel's policy flags at the sender (LOG_Restricted etc.) | |
| int64 | timestamp |
| Sender's wall clock timestamp; never re-stamped on the way in. | |
| uint64 | seq |
| Sender's sequence number. | |
| uint32 | batchid |
| Sender's batch id. | |
| uint32 | sample |
| Sampling rate this record survived at the sender. | |
| int | trigger |
| Severity that released it from a retention ring, or -1. | |
| uint8 | hops |
| Instances it has already been forwarded through. | |
| strref | origin |
| Instance it was originally logged on. | |
| strref | msgtmpl |
| Message template, or the literal message when istmpl is false. | |
| bool | istmpl |
| msgtmpl is a format template rather than a literal message | |
| const stvar * | args |
| Arguments, unkeyed ones first in their original order. | |
| int | nargs |
| Number of arguments. | |
| const stvar * | ctx |
| Context fields that were in scope at the sender, all keyed. | |
| int | nctx |
| Number of context fields. | |
One decoded log record, as it came off the wire
Everything here is borrowed for the duration of the frame callback. Hand it to logInject() to deliver it locally, or copy what you need.