My logging function looks like this, it's very handy (especially since my server automation programs run for no more than a few seconds). It basically appends the error to the file saying what time the error occurred, what the error is, and the name of the exe that generated the error (pulled from argv so even when the exe is renamed it is still accurate).
Tag Archive for File Operations
Make A Custom, File Oriented Debugger!
Category: Tips and Tricks |
Tags: C++, Error, Error Logging, Errors, File, File Operations, I/O, Logging, Operation, Operations