9 releases (4 breaking)
Uses new Rust 2024
new 0.5.0 | Apr 18, 2025 |
---|---|
0.4.1 | Mar 31, 2025 |
0.3.2 | Mar 30, 2025 |
0.2.1 | Mar 30, 2025 |
0.0.2 | Mar 30, 2025 |
#544 in Testing
595 downloads per month
6KB
108 lines
NALL (Not Another Logging Library)
this is in fact another logging Library
Usage
use NALL::log::log;
use NALL::clog::clog;
fn main() {
log(NALL::levels::LogLevel::Info, "Hi I am information".to_string());
log(NALL::levels::LogLevel::Warn, "Hi, I am a warning".to_string());
log(NALL::levels::LogLevel::Err, "Hi, I am an error".to_string());
log(NALL::levels::LogLevel::Fatal, "Goodbye :)".to_string());
clog(NALL::levels::LogLevel::Info, "Hi I am information".to_string(), None);
clog(NALL::levels::LogLevel::Warn, "Hi, I am a warning".to_string(), None);
clog(NALL::levels::LogLevel::Err, "Hi, I am an error".to_string(), None);
clog(NALL::levels::LogLevel::Fatal, "Goodbye :)".to_string(), None);
}
for clog check this ansi color cli for possible color values
Installation
# existing:
cargo add NALL
# new project:
cargo new my-project
cd my-project
cargo add NALL