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

`slog::Level::Warning.as_str()` results in the same `WARN` as `slog::Level::Warning.as_short_str()` instead of the `WARNING` one might expect. Is this intentional in anyway? The related source: https://github.com/slog-rs/slog/blob/f9e30f0dd9bad610227d9374001fcc13d5b7c8c8/src/lib.rs#L2076-L2086 Where variants like `Critical` are `CRITICAL`...

C-bug
P-low

When using isahc https://crates.io/crates/isahc log records are missing location information when logging them through slog. The information exists when logging through env_logger https://crates.io/crates/env_logger . `Cargo.toml`: ```toml [package] name = "temp"...

slog-syslog
slog-scope

Hello! I noticed very strange bug. ![image](https://user-images.githubusercontent.com/4084564/92266731-ed9f9e00-eedf-11ea-8250-28faa553247e.png) My code: ``` let log_path = "your_log_file_path.log"; let file = OpenOptions::new() .create(true) .write(true) .truncate(true) .open(log_path) .unwrap(); let file_decorator = slog_term::PlainDecorator::new(file); let file_drain =...

P-low
slog-term

> term is looking for a new maintainer | Details | | | ------------------- | ---------------------------------------------- | | Status | unmaintained | | Package | `term` | | Version |...

P-low
slog-term

It would be great to have some documentation on how to chose a proper `chan_size`. I tried using large size like `2_147_483_648_usize` however cargo just panics. And it's also panicing...

slog-async

All public types should implement Debug unless there's a good reason not to. Since the guard removes the logger when it is dropped, it can be necessary to store the...

C-enhancement
P-low

```rust use slog::Drain; fn main() { let drain = slog::Discard; let drain = slog_envlogger::LogBuilder::new(drain).build(); // Does not help: // let drain = drain.fuse(); let logger = slog::Logger::root(drain, slog::o!()); } ```...

C-bug
P-low
slog-envlogger

It seems that the logic in this PR: https://github.com/slog-rs/slog/pull/170 has been reverted somehow, because I now get exactly those errors which are described in that PR when I try to...

PRs needed :)

Is it possible to get something similar to python: https://docs.python.org/3.6/library/logging.handlers.html#rotatingfilehandler ?

C-feature-request
PRs needed :)

Why not use `Borrow` for keys instead of custom types? - `Key` can be replaced with generic `K: Borrow` - `OwnedKV` and `BorrowedKV` can be replaced with `T: Borrow`