You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO temp src/main.rs 32: start
INFO <unknown> <unknown> 505: new
INFO <unknown> <unknown> 505: -> new
INFO <unknown> <unknown> 372: build
...
Change which logger is enabled:
setup_env_logger();// let _guard = setup_slog_logger();
cargo run:
INFO temp src/main.rs 58: start
INFO isahc::client /home/u/.cargo/registry/src/github.com-1ecc6299db9ec823/isahc-0.9.3/src/client.rs 505: new
INFO isahc::client /home/u/.cargo/registry/src/github.com-1ecc6299db9ec823/isahc-0.9.3/src/client.rs 505: -> new
INFO isahc::client /home/u/.cargo/registry/src/github.com-1ecc6299db9ec823/isahc-0.9.3/src/client.rs 372: build
...
I am not sure which crate is at fault but slog is most likely as it works with env_logger.
The text was updated successfully, but these errors were encountered:
Historically log was using &'static str for module names. So slog used it to. Then log crate changed it to &'str, but changing it in slog would create a big split in the ecosystem.
It is possible to no one got to it yet, and log did (or is planing to?) add structured logging support etc. so I'm not sure if it is worth the trouble.
Maybe we could just do string interning (+ clone + box + leak) to turn non-&'static strings into &'static ones? I mean - how many module strings can a program have ...
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
:main.rs
:cargo run
:Change which logger is enabled:
cargo run
:I am not sure which crate is at fault but slog is most likely as it works with env_logger.
The text was updated successfully, but these errors were encountered: