log-assist
A cargo crate library Async-friendly structured logger for Seq that automatically uses your Cargo project name, and safely reports panics (with file & line) even when the runtime is shutting down.
✨ Features
- ✅ Async-friendly — Uses Tokio background task and buffered channel
- ✅ Safe panic hook — Sends panic file, line, and message to Seq via blocking client (no runtime issues)
- ✅ Non-blocking logs — Uses a background flush loop with configurable interval and queue size
- ✅ Zero config for basic use — Just call
seq::init()once
🚀 Quick Start
Add to Cargo.toml:
[]
= "0.1.1"
= "1.0"
= { = "1", = ["macros", "rt-multi-thread"] }
Usage
use ;
async