{"repo":"rust-lang/log","free":true,"listed":false,"github":"https://github.com/rust-lang/log","clone":"git clone https://github.com/rust-lang/log.git","description":"Logging implementation for Rust","language":"Rust","stars":2541,"topics":["rust-library","logging"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"log === A Rust library providing a lightweight logging facade . log documentation A logging facade provides a single logging API that abstracts over the actual logging implementation. Libraries can use the logging API provided by this crate, and the consumer of those libraries can choose the logging implementation that is most suitable for its use case. Minimum supported rustc See the rust-version field in Cargo.toml for the current minimum Rust toolchain version. This version is explicitly tested in CI and may be bumped in any release as needed. Maintaining compatibility with older compilers is a priority though, so the bar for bumping the minimum supported version is set very high. Any changes to the supported minimum version will be called out in the release notes. Usage In libraries Libraries should link only to the log crate, and use the provided macros to log whatever information will be useful to downstream consumers: In executables In order to produce log output, executables have to use a logger implementation compatible with the facade. There are many available implementations to choose from, here are some options: Simple minimal loggers: env logger colog simple logger simplelog pretty env logger stderrlog flexi logger call logger std-logger structured-logger clang log ftail Complex configurable frameworks: log4rs logforth fern spdlog-rs Adaptors for other facilities: syslog systemd-journal-logger slog-stdlog android log win dbg logger db logger log-to-defmt logcontr","default_branch":null,"files":null,"tree":[],"storefront":"/r/rust-lang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rust-lang/log/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}