macro_rules! log_sensitive {
($lvl:expr, $($arg:tt)+) => { ... };
}Expand description
macro for logging sensitive data with a specific Level
ยงExample
use aul::level::Level;
use aul::{log, log_sensitive};
log_sensitive!(Level::INFO,"This is a sensitive information");
// [INFO]: This is an information
// change env variable "SAFE_LOGGING" to true
log_sensitive!(Level::INFO,"This is a sensitive information");
// [INFO]: [REDACTED]
log_sensitive!(Level::INFO,"{} - {}","Info 1","Info 2");
// [INFO]: [REDACTED]