slog icon indicating copy to clipboard operation
slog copied to clipboard

Structured, contextual, extensible, composable logging for Rust

Results 58 slog issues
Sort by recently updated
recently updated
newest added

Working on a project where there's some concern over making things async signal safe. It looks like to do that, we'll need to send slog records to a separate process...

Hey, I found an issue with the `slog-config` crate. I'm new in Rust so I don't really know if that is on my side. Environment: `rustup 1.18.3 (2019-05-23)` `rustc 1.37.0...

Currently reading the documentation for [Key](https://docs.rs/slog/2.5.2/slog/struct.Key.html) reveals it has an implementation `Key: From`, however without `dynamic-key` feature enabled it is be super confusing when an error like `the trait bound...

At the moment, it is not possible to clone the `Record` struct. Cloning the `Record` would be very useful in order to write a `Drain` that for example sends the...

# Context I have application divided into sections. Every section has own logger with its name in `KV`, so log consumer can tell which section is source of entry. I...

The documentation: https://docs.rs/slog-stdlog/3.0.4-pre/slog_stdlog/struct.StdLog.html lacks any examples. And a working example is very much necessary, because straightforward usage doesn't work and produces incomprehensible error. `StdLog` implements `Drain`, but one that is...

Context: Our test runner uses test log paths that exceed windows MAXPATH (260). When stdout is routed to such a path, the isatty check fails due to an upstream dependency...

# Context As a user I have a `Logger` and I want to create a new `Logger`, which is the same as the old one, but has additional key-value. #...

Seems like it's not possible to configure the indent in `slog_term::CompactFormat`. Specifically I would like a number >1 spaces per indend.

The JSON logger has a set of "default" fields that it outputs: https://github.com/slog-rs/json/blob/master/lib.rs#L320. However, `RecordStatic` contains several additional useful fields (tag and location) which are not logged.