Request for comment: A Rust logging library that is inspired by Log4j and Logback

tison <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.devel
Message-ID <CALL9TYJUZk_kU_MQuAKCCbPJcm3jCpu6F3inFf88wp-TCLDPXg__11341.3789005548$1763829137$gmane$org@mail.gmail.com>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.