Skip to main content

Crate log_assist

Crate log_assist 

Source
Expand description

log-assist: async-friendly Seq logger that auto-uses your Cargo project name.

Usage:

use log_assist::seq;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Usually read these from your own config file once:
    seq::init(seq::Config {
        endpoint: "http://localhost:5341".into(), // Seq URL (no trailing slash)
        api_key: None,                             // Some("YOUR_SEQ_API_KEY".into())
        queue_capacity: 10_000,                    // optional tuning
        flush_interval_ms: 1000,                   // batch flush cadence
    }).await?;

    seq::info("service started", serde_json::json!({"port": 8080})).await;
    Ok(())
}

Modules§

seq
Public module façade

Structs§

Config

Enums§

InitError
LogError
TimeMode