/leg

🔈 Elegant logging made simple

Primary LanguageRustMIT LicenseMIT

leg

🔈 Elegant logging made simple

Demo

Build Status Latest version Stability stable

🤙 Ping me on Twitter if you like this project

Thanks to the awesome colored crate this utility works on Linux, MacOS, and Windows (Powershell). Respecting CLICOLOR/CLICOLOR_FORCE and NO_COLOR behavior.

Use

📝 Please visit the full documentation if you want to learn the details.

use leg::*;

head("leg", Some("🔈"), Some("1.0.0"));

info("Informational message", None, None);
success("Succesfull operation", None, None);
warn("Warn message", None, None);
error("Error message", None, None);
wait("Waiting for something", None, None);
done("Something finished", None, None);

print!("Not shown");
remove();

info("Informational message with scope", Some("myscope"), None);
info(
    "Informational message without new line",
    None,
    Some(false),
);
println!(" => same line");

Contributing

😎 If you want to help please take a look to this file.