Basic logging functionality (C++).
Windows & C++11(ish) only, for now. Missing most features. But works! (on my computer ^_^)
I needed to log things. And I wanted to play around with variadic templates
(version before C++11 was ugly ^_^).
Probably only usable for me, personally. If even that :D
Now using std::initializer_list
.
Logger log;
log.log("one 1");
log.log("two ", 2);
log.log("three ", 3.01f);
log.log("4 ", "fou", 'r');
When Logger
is created it creates a log-file in log
, creates a file there (using current time), and spawns a low priority thread that checks if there are things to print every 0.2 seconds or so.
And I chould add settings for most of this. :)
Lots! :)
/gulgi