Registry / logging / slog-stdlog

slog-stdlog

JSON →
library4.1.1rscratesunverified

`log` crate adapter for slog-rs.

# Cargo.toml [dependencies] slog-stdlog = "4.1.1"
INSTALL
IMPORT
SIG · SLOG-STDLOG
S
slog-stdlog
loggingrustv4.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

init
use slog_stdlog::init;

Initializes the slog logger as the backend for the `log` crate.

use slog_stdlog::init; use log::info; init().unwrap(); info!("Hello from slog via log facade");
Debug
Known issues
gotchaRequires the `slog` crate and a configured slog drain (e.g., `slog-term`) to see output.
fix
Add `slog` and `slog-term` dependencies, create a logger, and pass it to `slog_stdlog::set_logger`.
affects: >=4.0.0
Upgrade
Version history
4.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
Amazon
1
Resources
slog-stdlog — cargo add slog-stdlog · libregistry