Skip to main content

Module router

Module router 

Source
Expand description

Raw log entry to parser dispatch routing.

Examines the header prefix and payload of each raw log entry to determine which category-specific parser should handle it. Unrecognized entries are counted and logged at debug level.

§Dispatch strategy

Each LogEntry is offered to category parsers in a fixed priority order (most frequent first). The first parser that returns one or more events claims the entry. GRE entries may produce multiple events from batched GameStateMessage values. If no parser matches, the entry is counted as unrecognized and discarded.

§Timestamp extraction

The router extracts the timestamp from the entry header line (e.g., [UnityCrossThreadLogger]2/25/2026 12:00:00 PM ...) and parses it using parse_log_timestamp. If the timestamp cannot be parsed, None is passed to parsers so downstream consumers can distinguish real timestamps from missing ones.

Structs§

Router
Dispatch router that matches raw log entries to category-specific parsers.
RouterStats
Counters for router health monitoring.