Skip to main content

Module solana_logs

Module solana_logs 

Source
Expand description

Tolerant lexer for Solana program logs.

The lexer turns raw log lines into a flat stream of LogEvents. It never panics on malformed input: a line it cannot classify is preserved as LogEvent::Raw, and a line that looks structured but parses badly yields a LogEvent::Raw plus an actionable warning, lowering confidence downstream.

Structs§

LexResult
The outcome of lexing a log stream.

Enums§

LogEvent
One recognised (or preserved) log line.

Functions§

lex
Lex a slice of log lines into a LexResult.