simplest-logger

Crates.iosimplest-logger
lib.rssimplest-logger
version0.2.0
sourcesrc
created_at2023-10-24 19:26:05.819574
updated_at2023-10-24 19:33:32.606561
descriptionUltra-simple logger with a focus on performance. No bells or whistles, just a fast simple no-fuss logger.
homepage
repositoryhttps://codeberg.org/tryoxiss/simplest-logger
max_upload_size
id1012693
size10,976
tryoxiss (tryoxiss)

documentation

README

SimplestLogger

Inspired by SimpleLogger, this is a crate for ultra-simple logging. I created it because there were no crates that focused on being ultra lightweight and no-effort to use.

# Cargo.toml

[dependencies]
simplest-logger = "1.0.0"
fn main()
{
	SimplestLogger::initalize(); // info by default
	// SimplestLogger::set_level(LevelFilter::LEVEL) to change

	// your code
}

Roadmap

  • impl Log for SimplestLogger so it works with the log macros.
  • Unit testing
    • Errors
    • Panics (only one!)
    • Benchmarks
  • Integration testing (with tests/)
    • Errors
    • Panics (only one!)
    • Benchmarks
  • Attribute feature to change log level per-function #[log(Level)]. (Maybe not sicne this may hurt performance)

Performance

TODO (tl;dr: super fast!)

Commit count: 0

cargo fmt