A simple, lightweight log-to-file option for C and C++ projects.
- No dependencies beyond standard C library
- just drop the .c and .h files into your project and get started
- automatic file and line numbers added to log messages
- at the start of your program run
init_logger("YOUR LOG FILE GOES HERE");
- frequently call and before program exit
slog_sync();
(Such as every game or program loop or in its own thread)
- Call
slog(...);
whenever you want to write something to file and standard out