log4rs VS slog

Compare log4rs vs slog and see what are their differences.

log4rs

A highly configurable logging framework for Rust (by estk)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
log4rs slog
- 2
940 1,530
- 1.5%
7.2 6.9
15 days ago about 1 month ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

log4rs

Posts with mentions or reviews of log4rs. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning log4rs yet.
Tracking mentions began in Dec 2020.

slog

Posts with mentions or reviews of slog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-02.
  • I'm releasing cargo-sandbox
    9 projects | /r/rust | 2 Jan 2023
    I only recently learned about rustwide myself when implementing sandboxed rustdoc builds for Shipyard.rs. After spending a good amount of time with the codebase, I have found it to be generally high quality, but the way the code is organized makes it fairly difficult to adapt for different purposes than it was intended for (not modular). I have a fork that I have changed to do what I need but not sure whether the two codebases can be reconciled because I ended up needing to put stuff very specific to my purposes in there. I also ran into a weird issue where the logging from rustwide was conflicting with the slog-based logging from my code, which feels to me like there is some UB lurking somewhere.
  • Adding Slog Logger to Actix Web
    3 projects | dev.to | 2 Jun 2022
    Slog Core Crate : core package to the gateway of logging modules.

What are some alternatives?

When comparing log4rs and slog you can also consider the following projects:

tracing - Application level tracing for Rust.

log - Logging implementation for Rust

sax-wasm - The first streamable, fixed memory XML, HTML, and JSX parser for WebAssembly.

angle-grinder - Slice and dice logs on the command line

xml-rs - An XML library in Rust

actix-slog-logger-setup - Adding Slog Logger to Actix Web easily.

fast_xbrl_parser - An XBRL parser built in Rust that provides a fast, easy, and lightweight way to convert XBRL XML files into JSON or CSV.

crosvm - The Chrome OS Virtual Machine Monitor - Mirror of https://chromium.googlesource.com/crosvm/crosvm/

roxmltree - Represent an XML document as a read-only tree.

async - Asynchronous drain for slog-rs v2