Hi,

I'm currently working on a Rust logging library:
https://github.com/fast/logforth

It borrows many concepts from log4j and logback, and it is used in
production handling millions/s of logs, so IMO it's relatively solid.

I'm considering moving it to the ASF, but I'd first ask for some
logging devs review on the APIs if anyone here has some spare time.

Logforth uses Rust's "official" log crate [1] as its facade and both
parameterized logging and structural logging are supported, e.g.,:

>    log::info!(
>        target: "exchange",
>        statement_id:% = statement_id,
>        stage_id:% = stage_id,
>        bytes:% = humansize::format_size(total_bytes, humansize::BINARY);
>        "cleared local exchange buffers for stage",
>    );
>
>    log::info!("ScopeDB is starting with loaded config: {:#?}", config);

Perhaps logforth can have its own facade, i.e., its own info!/log!
macros, but it may further divide the community, so I'm a bit
hesitant.

[1] https://github.com/rust-lang/log

Looking forward to your feedback on whether it's a good candidate to
enrich the logging service ecosystem, and if there is any typical
ideas to improve such a logging library :D

Best,
tison.

Reply via email to