Expand description
Tale - A high-performance log pretty-printer for ndjson files
This library provides utilities for reading, parsing, and formatting newline-delimited JSON log files with memory-efficient processing and chunked file processing.
§Library surface
This crate is, first and foremost, the tale binary. The pub items here
exist to serve that binary and the benches/ — both separate crate targets,
so they can only reach pub items. They are not a stability-guaranteed
public API. Items re-exported solely for the benchmarks are marked
#[doc(hidden)]; TaleError and the FileProcessor trait are the only
pieces shaped as a reusable surface.
Re-exports§
pub use readers::FileProcessor;
Modules§
- colors
- Whether ANSI colors should be emitted on stdout.
- config
- A module to corral configuration to the side and into a single source of truth. Provides conveniences for answering config questions without having to pass batons around.
- json_
profiler - JSON deserialization profiling
- metrics
- Performance metrics and system memory monitoring.
- multiplexed
- Weaving together output from more than one file.
- readers
- File processing architecture with different strategies for various use cases.
Enums§
- Tale
Error - Main error type for tale operations
Functions§
- process_
line - Process a single line of input (JSON or plain text) and write to output.
- strip_
line_ ending - Strip trailing newline(s) from the string input, handling Windows line endings as well.