Registry / logging / slog-term

slog-term

JSON →
library2.9.2rscratesunverified

Unix terminal drain and formatter for slog-rs

# Cargo.toml [dependencies] slog-term = "2.9.2"
INSTALL
IMPORT
SIG · SLOG-TERM
S
slog-term
loggingrustv2.9.2
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.

TermDecorator
use slog_term::TermDecorator;

Creates a terminal logger with full formatting.

use slog::Drain; use slog_term::TermDecorator; fn main() { let decorator = TermDecorator::new().build(); let drain = slog_term::FullFormat::new(decorator).build().fuse(); let _logger = slog::Logger::root(drain, o!("version" => "1.0")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.9.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
slog-term — cargo add slog-term · libregistry