Crate aul

Source
Expand description

§Another useless Logger

This crate can be used for logging to stdout and censoring private information using Sens

§Usage

This library provides multiple macros for example log!

    use aul::level::Level;
    use aul::log;

    let a = 1;
    let b = 2;

    log!(Level::TRACE,"Calling method add with params {} and {}",a,b);

    let c = add(a,b);

    log!(Level::TRACE,"Called method add");
    log!(Level::INFO,"Result: {}",c);

    fn add(a : i32, b : i32)-> i32 { a + b }

Modules§

errors
Error Module for ParseLogLevelError
level
Module for different logging Levels
macros
Module for all the Macros
sensitive
Module for Sensitive wrapping with the Sens struct

Macros§

debug
macro for logging with Level DEBUG
error
macro for logging with Level ERROR
info
macro for logging with Level INFO
log
macro for logging with a specific Level
log_sensitive
macro for logging sensitive data with a specific Level
trace
macro for logging with Level TRACE
warn
macro for logging with Level WARN

Functions§

log
Warning used by the macro to log. Not intended for personal usage
log_sensitive
Warning used by the macro to log. Not intended for personal usage
paint_level