pub struct LogData {Show 19 fields
pub subsystem: String,
pub thread_id: u64,
pub pid: u64,
pub euid: u32,
pub library: String,
pub library_uuid: String,
pub activity_id: u64,
pub time: f64,
pub category: String,
pub event_type: EventType,
pub log_type: LogType,
pub process: String,
pub process_uuid: String,
pub message: String,
pub raw_message: String,
pub boot_uuid: String,
pub timezone_name: String,
pub message_entries: Vec<FirehoseItemInfo>,
pub timestamp: String,
}Fields§
§subsystem: String§thread_id: u64§pid: u64§euid: u32§library: String§library_uuid: String§activity_id: u64§time: f64§category: String§event_type: EventType§log_type: LogType§process: String§process_uuid: String§message: String§raw_message: String§boot_uuid: String§timezone_name: String§message_entries: Vec<FirehoseItemInfo>§timestamp: StringImplementations§
Source§impl LogData
impl LogData
Sourcepub fn parse_unified_log(data: &[u8]) -> IResult<&[u8], UnifiedLogData>
pub fn parse_unified_log(data: &[u8]) -> IResult<&[u8], UnifiedLogData>
Parse the Unified log data read from a tracev3 file
Sourcepub fn build_log(
unified_log_data: &UnifiedLogData,
provider: &mut dyn FileProvider,
timesync_data: &HashMap<String, TimesyncBoot>,
exclude_missing: bool,
) -> (Vec<LogData>, UnifiedLogData)
pub fn build_log( unified_log_data: &UnifiedLogData, provider: &mut dyn FileProvider, timesync_data: &HashMap<String, TimesyncBoot>, exclude_missing: bool, ) -> (Vec<LogData>, UnifiedLogData)
Reconstruct Unified Log entries using the binary strings data, cached strings data, timesync data, and unified log. Provide bool to ignore log entries that are not able to be recontructed (additional tracev3 files needed) Return a reconstructed log entries and any leftover Unified Log entries that could not be reconstructed (data may be stored in other tracev3 files)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogData
impl RefUnwindSafe for LogData
impl Send for LogData
impl Sync for LogData
impl Unpin for LogData
impl UnwindSafe for LogData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more