I am currently looking for a library that provides debugging support for basically ALWAYS LOGGING a configurable amount of data (say 1-5 MB) to an in-memory buffer in a FIFO fashion (possibly in a dedicated logging thread), but only actually display/store this data once an exception is thrown.
Sort of like a "poor man's backtrace". I am looking for a way to include very verbose information (timestamp, source file, function/method, line number, type of error, message etc) in these logs, so that segfaults can be more easily reproduced. At the moment, I am considering to use an XML/RDF based dialect for storage - but I would consider other solutions, too.
Would poco be suitable for this, or could it possibly be adjusted accordingly?
Thank you very much in advance