Skip to main content

encode_log_entry

Function encode_log_entry 

Source
pub fn encode_log_entry(params: &LogEntryParams<'_>) -> Vec<u8> 
Expand description

Encode a single LogEntry FlatBuffer.

LogEntry table fields:

  • field 0: event_type u8
  • field 1: session_id [ubyte]
  • field 2: level u8
  • field 3: timestamp u64
  • field 4: source string
  • field 5: service string
  • field 6: payload [ubyte]