#logging #logger #log

alto_logger

an opinionated logger that provides colorful and multi-line output

13 releases

0.4.0 Aug 30, 2022
0.3.7 Aug 23, 2020
0.3.6 Jun 6, 2020
0.3.4 May 19, 2020
0.1.1 Feb 24, 2020

#420 in Debugging


Used in stream_multiplexer

0BSD license

35KB
729 lines

alto_logger

Crates Documentation Actions

filtering

use the environmental variable RUST_LOG with module_name=level

RUST_LOG="tokio=warn,my_module=info,my_module::inner=trace"

optional features

time enables printing out a UTC timestamp with time


lib.rs:

filtering

Use the ENV variable RUST_LOG with module_name=level

RUST_LOG="tokio=warn,my_module=info,my_module::inner=trace"

A default level can be provided with just level. e.g. RUST_LOG=trace will enable trace for all modules.

You can disable specific modules/crates by using the off level

optional features

Dependencies

~0.1–7MB
~42K SLoC