Skip to content

AdrisGithub/aul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AUL - Another useless logger

Another logging library that can be used for logging to stdout

Latest version Documentation Reliability Rating Quality Gate Status Technical Debt

Documentation:

Usage:

Import the library into your Cargo.toml

[dependencies]
aul = "1.4.1"

You can also enable the coloring feature

[dependencies]
aul = { version = "1.4.1", features = ["color"] }

Then use the specific macro or censor specific data

use aul::warn;

fn start_server(port: u16) {
    log!(Level::TRACE,"Called Method 'start_server' with port: {} ", port);
    warn!("Important sensitive data: {}", Sens(&port))
}

FAQ

Q: I wrapped my data inside the Sens struct, but it still shows the values?
A: You need to set the env variable SAFE_LOGGING to true at any point in runtime

About

Another useless logger: Test Project for discovering how crates and macros work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages