redline-core 0.1.1

Core encoding, filtering, and record capture for redline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# redline-core

Core types for [`redline-log`](https://crates.io/crates/redline-log), including filter parsing, field capture, NDJSON encoding, binary framing, and binary decoding.

## Example

```rust
use redline_core::TargetFilter;
use tracing_core::metadata::LevelFilter;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let filter = TargetFilter::parse("info,my_app::db=debug")?;
    assert_eq!(filter.default_level(), LevelFilter::INFO);
    Ok(())
}
```