Crate xlog

Source
Expand description

xlog-rs

A simple logging library for Rust.

§Examples

use xlog::warn;

xlog::log::init(std::io::stdout(), xlog::log::Level::Trace);

warn!("warn message");

Modules§

log
main module

Macros§

debug
Logs a message at the debug level.
error
Logs a message at the error level.
info
Logs a message at the info level.
log_dispatch
Dispatch message with the type and level
trace
Logs a message at the trace level.
warn
Logs a message at the warn level.