mirror of https://github.com/sgoudham/rall.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hammy 010b7133e4 | 3 years ago | |
---|---|---|
.github | 3 years ago | |
images | 3 years ago | |
src | 3 years ago | |
.gitignore | 3 years ago | |
Cargo.toml | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago |
README.md
Really...? Another Logging Library?
Yes! :P
rall is an incredibly simple and intuitive logger, consider this crate a failure if you can't get setup within 30 seconds!
Feature Set
- Logging Levels
- Coloured Output
- Options for Datetime, Current Function, Line Number, Custom Colours, etc.
- Custom Formatting
- File support
And much more to come... soon™!
Quick Start
use rall::SimpleLogger;
// Create Default SimpleLogger
let mut simple_logger = SimpleLogger::default();
// Log Out To Standard Output
logger.log(Level::TRACE, "My Best Friend Hazel :D");
logger.log(Level::DEBUG, "My Best Friend Hazel :D");
logger.log(Level::INFO, "My Best Friend Hazel :D");
logger.log(Level::WARN, "My Best Friend Hazel :D");
logger.log(Level::ERROR, "My Best Friend Hazel :D");
logger.log(Level::CRITICAL, "My Best Friend Hazel :D");
Windows Output
Unix Output
Author Notes
I'm still incredibly early in my Rust journey and so I wanted to get comfortable and try to pick my own brain about exposing different API's in a Rust crate. I hope to expose an intuitive and easy to understand API design that users can instantly get started with.