slog-rs logo
Travis CI Build Status slog-rs on crates.io slog-rs Gitter Chat docs-rs: release versions documentation
Introduction FAQ
All crates

slog-rs - The Logging for Rust

Status & news

slog is an ecosystem of reusable components for structured, composable logging for Rust.

The ambition is to be The Logging Framework for Rust. slog should accommodate variety of logging features and requirements.

Features

Advantages over log crate

Terminal output example

slog-term is only one of many slog features - useful showcase.

Automatic TTY detection and colors:

slog-rs terminal full-format output

Compact vs full mode:

slog-rs terminal compact output slog-rs terminal full output

Using & help

See examples/features.rs for full quick code example overview.

See [faq] for answers to common questions and [wiki] for other documentation articles. If you want to say hi, or need help use [slog-rs gitter] channel.

Read Documentation for details and features.

To report a bug or ask for features use github issues.

Building & running

If you need to install Rust (come on, you should have done that long time ago!), use rustup.

In your project

In Cargo.toml:

[dependencies] slog = "1.2"

In your main.rs:

```

[macro_use]

extern crate slog; ```