feat: ffi bindings for os_trace_relay (#8)

* feat: ffi bindings for os_trace_relay

* Update os_trace_relay.rs
This commit is contained in:
khcrysalis
2025-05-25 14:05:48 -07:00
committed by GitHub
parent bcb388e95d
commit 135452157a
3 changed files with 227 additions and 9 deletions

View File

@@ -66,19 +66,19 @@ pub struct OsTraceRelayReceiver {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct OsTraceLog {
pid: u32,
timestamp: NaiveDateTime,
level: LogLevel,
image_name: String,
filename: String,
message: String,
label: Option<SyslogLabel>,
pub pid: u32,
pub timestamp: NaiveDateTime,
pub level: LogLevel,
pub image_name: String,
pub filename: String,
pub message: String,
pub label: Option<SyslogLabel>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SyslogLabel {
subsystem: String,
category: String,
pub subsystem: String,
pub category: String,
}
#[derive(Debug, Clone, PartialEq, Eq)]