Expand description
Log export helpers for Copper applications.
This crate serves two related use cases:
- Rust logreader binaries built with
run_cli - optional Python-facing iterators for offline analysis of structured logs, runtime lifecycle records, and app-specific CopperLists
Python support here is intentionally offline. It reads data that Copper has already recorded. That is very different from putting Python on the runtime execution path, and it does not compromise realtime behavior during robot execution.
For runtime Python task prototyping, see cu-python-task instead.
Modules§
Structs§
- LogReader
Cli - This is a generator for a main function to build a log extractor.
Enums§
Functions§
- assert_
unified_ log_ mission - Ensures the unified log was recorded for the expected mission.
- copperlists_
reader - Extracts the copper lists from a binary representation. P is the Payload determined by the configuration of the application.
- keyframes_
reader - Extracts the keyframes from the log.
- run_cli
- This is a generator for a main function to build a log extractor. It depends on the specific type of the CopperList payload that is determined at compile time from the configuration.
- runtime_
lifecycle_ reader - Extracts the runtime lifecycle records from the log.
- structlog_
reader - textlog_
dump - Full dump of the copper structured log from its binary representation. This rebuilds a textual log. src: the source of the log data index: the path to the index file (containing the interned strings constructed at build time)
- unified_
log_ mission - Returns the first mission announced by the runtime lifecycle section, if any.