falco_event

Module format

source
Expand description

Falco-style formatting for fields and events

This module provides the format::Format trait, which, similar to std::fmt::Debug, enables you to get a text representation of a field or an event. The differences compared to Debug are:

  • the output format follows the formatters from libsinsp (although it’s not exact, as it uses e.g. the Debug impl for std::time::Duration for pretty printing time intervals)
  • the output can be configured in a limited fashion using the template parameter (see format::format_type)

Modules§

Traits§

  • Get a Falco-style string representation of a field or an event