A simple and colorful logging crate for Rust.
Add the following to your Cargo.toml
:
[dependencies]
wood = { git = "https://github.com/stewthestew/Wood.git" }
use wood::Logger;
Logger::info("This is an info message.");
Logger::warn("This is a warning message.");
Logger::error("An error occurred!");
Logger::fatal("A fatal error occurred!");
Logger::success("Operation completed successfully.");
Logger::debug("This is a debug message.");
Simple::extra("ALERT", "\x1b[31m", "This is a custom alert."); // This will not provide the current date