Crate s4lib

source ·
Expand description

Super Speedy Syslog Searcher library, s4lib!

This is the library implementation used by binary program s4. This library is documented in part to have a presence on docs.rs.

The s4lib library was not designed for use outside of program s4, and it was not designed to be an especially user-friendly API.

The term “syslog” within code context is used refers to a log file where each log message has some parsesable datetimestamp. It is not necessarily an RFC 5424 compliant message. Also see Definitions of data and Sysline.

Modules

Common imports, type aliases, and other globals for s4lib.
The data module is specialized data containers for Blocks, Lines, and Syslines.
The printer module is for printing user-facing Syslines with various text effects (color, underline, etc.) and per-Line prepended data (datetime, file name, etc.).
“Readers” for s4lib.

Macros

Declare a DateTimeParseInstr tuple more easily.
debug eprintln! an error
debug eprintln! an warning
eprintln! an error
eprintln! a warning