“how NOT to do logging like a rust-retard or moderncpp lover fmt fucker communist committe cumdumpster”
Maybe this way it will get more attention 🤣 Warning, this is about actually useful programming advice, not just throwing shit or trolling 🤣
Logging to text files is idiotic. Let me show you, how to do it right.
Results:
-very simple and problem-free multithreaded logging
-minimal cpu load runtime
-small log files
-faster compile times (especially if you are using retarded shit for formatting)
Use a fucking enum for messages tight binary blobs for data instead of string fuckery.
Log per thread into separate log buffers.
Have a fixed small time slot per frame per thread to dump the log per thread using ASIO / DMA to a per thread log file or send them thru network)
If logging is not time critical, send to network on exit/crash using a standalone watchdog app or SEH or something.
On exit/crash, maybe also compress the log files.
Make small standalone app that convert your per thread compressed binary logs into a single txt.
You can even write a small log reader with more filtering options, maybe 1 day of work tops.