hnisula / ducklib

A library made out of ducks
1 stars 0 forks source link

Add simple `Logger` and a test program #48

Closed hnisula closed 1 year ago

hnisula commented 1 year ago

4 log levels, 1 output (std::cout, behind a mutex). Support for string formatting with sprintf().

ducklib::Logger log;
log.SetLogLevel(ducklib::LogLevel::WARNING);
log.Error("This number is nice: %d", 8);

Closes #47 .