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

```rust use slog::Drain; // required to call .fuse() on logger let log: Arc = log; slog::error!(log, "WTF"); ``` Gives: ``` | 115 | slog::error!(log, "WTF"); | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found...

Should `Level::Debug < Level::Info` or the other way around?

What is the proper way to use FnValue? If I understand it's purpose, it's the right way to avoid potentially expensive serialization when a logging statement doesn't actually log, a...

A Go logging library, `zap` has the ability to throttle duplicate output if the rate is too high: https://godoc.org/go.uber.org/zap#SamplingConfig It's a quite good feature to have, both for not accidentally...

https://github.com/slog-rs/slog/tree/v3 me trying out things that I think should have been different.

Hi, since the version 2.2.2 the following code: `error!(logger, "at {name:?}: {sym:#}", name = frame.ip(), sym = demangle(name)));` stopped working with an error "slog::Value is not satisfied", while `error!(logger, "at...

Since all these logging statements are placed all over the code already (at least that's the idea), someone might want to log some logging statements as events for `statsd`. Might...

C-feature-request
help needed

After an older gitter conversation, slog_scope's default global logger was changed to default to panic!()ing when the logger guard goes out of scope. I think this is a bad default,...

Necessary in case of massive systems where the same error can repeat in many places possibly ... Ideally per level so e.g. ERROR/WARN/CRIT are showing it ... Yes, it can...

C-enhancement
PRs needed :)

In many Rust projects, Clippy is used to detect suboptimal code. Clippy [may give a warning](https://github.com/Manishearth/rust-clippy/wiki#use_debug) whenever you leave `Debug`-based formatting in your code. ``` warning: use of `Debug`-based formatting...

PRs needed :)