Registry / logging / simple-logging

simple-logging

JSON →
library2.0.2rscratesunverified

A simple logger for the log facade

# Cargo.toml [dependencies] simple-logging = "2.0.2"
INSTALL
IMPORT
SIG · SIMPLE-LOGGING
S
simple-logging
loggingrustv2.0.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.

log_to_file
use simple_logging::log_to_file;

Sets up logging to a file and logs an info message.

use simple_logging::log_to_file; use log::info; fn main() { log_to_file("test.log", log::LevelFilter::Info).unwrap(); info!("Hello, world!"); }
Debug
Known issues
gotchaRequires the `log` crate as a dependency for the log facade.
fix
Add `log = "0.4"` to Cargo.toml.
affects: *
Upgrade
Version history
2.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
Amazon
1
Resources
simple-logging — cargo add simple-logging · libregistry