rusty-logger

Crates.iorusty-logger
lib.rsrusty-logger
version0.3.0
sourcesrc
created_at2021-05-29 14:38:47.349535
updated_at2021-10-27 20:13:24.008948
descriptionA modular and simple logger for rust
homepage
repositoryhttps://github.com/CRBl69/rusty-logger/
max_upload_size
id403535
size19,134
Bogdan Crisan (CRBl69)

documentation

README

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)
Commit count: 0

cargo fmt