7 releases
0.1.4 | Aug 16, 2022 |
---|---|
0.1.3 | Aug 16, 2022 |
0.0.2 | Aug 16, 2022 |
#71 in #hello-world
24 downloads per month
7KB
99 lines
Easy Logging Library
A simple and lightweight rust logging library.
Examples
Logging to a file and console
use lib::Logger;
fn main() {
let mut logger: Logger = Logger::new();
logger.output_to_file(None);
logger.info("Hello, world!");
logger.warn("Hello, world!");
logger.error("Hello, world!");
logger.debug("Hello, world!");
}
Logging to just the console
use lib::Logger;
fn main() {
let logger: Logger = Logger::new();
logger.info("Hello, world!");
logger.warn("Hello, world!");
logger.error("Hello, world!");
logger.debug("Hello, world!");
}
Dependencies
~1–11MB
~61K SLoC