4 releases (2 breaking)
0.3.0 | Oct 27, 2021 |
---|---|
0.2.0 | Sep 3, 2021 |
0.1.1 | Jun 30, 2021 |
0.1.0 | May 29, 2021 |
#26 in #rusty
19KB
338 lines
Rusty logger !
This is a personal project i decided to make in order to have a logger that meets my own needs.
It has basic functionality like outputing errors, warnings and informations but also timers and it is fairly modular. It is still under development and more is to come.
Usage
use rusty_logger::logger::Logger;
let mut logger = Logger::new("New logger", std::io::stdout());
logger.info("Hello world !");
Objectives
Modularity
I tried to build this logger in a modular way. For
example, the output of the logger is a stream given
by the end user. This means that you can output to
stdout
or stderr
but also to a file. You can also
change colors or options as you please.
Simplicity
I want this logger to be simple and easy to use. In an ideal world, you would just add it to your project and use it without having to read the docs.
Warning
Compatibility with older versions in NOT a priority. It is highly likely that I realise there are some big design flaws and I change things.
TODO
- read config from file (JSON or TOML)
Dependencies
~1–11MB
~61K SLoC