slog-rs - The Logging for Rust
Table of Contents
- Status & news
- Slog community
- Slog related resources
slog is an ecosystem of reusable components for structured, extensible,
composable logging for Rust.
The ambition is to be The Logging Framework for Rust.
slog should accommodate
variety of logging features and requirements.
Status & news
slog v2 (versions
2.x.y) is the latest stable major release. API of
slog v2 is very similar to
slog v1 and most changes are under the hood, unleashing
more power. Porting should be relatively easy.
slog v2 wiki page
for more information.
Note: at the time of writing, many important
slog ecosystem crates might
still not have a stable release for
slog v2 and you might need to point
to their pre-release versions. Eg. (
slog-term = "~2.0.0-3"
slog v1 (versions
1.x.y) is a previous stable major release. No new development
is planed, but bugfixes and PRs are always welcome.
Features & technical documentation
Most of interesting documentation is using rustdoc itself.
Terminal output example
slog-term is only one of many
slog features - useful showcase,
featuring eg. automatic TTY detection and colors.
See following screenshot: same output in both compact and full output mode.
Using & help
See examples/features.rs for full quick code example overview.
Read Documentation for details and features.
To report a bug or ask for features use github issues.
In your project
[dependencies] slog = "2"
#[macro_use] extern crate slog;
Slog related crates are hosted under slog github organization.
Dawid Ciężarkiewicz is the original author and current maintainer of
therefore self-appointed benevolent dictator over the project. When working on
slog Dawid follows and expects everyone to follow his Code of
Any particular repositories under slog ecosystem might be created, controlled, maintained by other entities with various level of autonomy. Lets work together toward a common goal in respectful and welcoming atmosphere!
- 24 days of Rust - structured logging - review and tutorial by Zbigniew Siciarz 2016-12-05
- Writing GStreamer Elements in Rust (Part 4): Logging, COWs and Plugins - experiences using Rust & slog for GStreamer