write the log into STL strings, or some odd construct, then you could open a file as binary and save your std::strings into it. You know the contents of the file so you could read it... (or some real weak encryption (check out my xor encryption program here: http://www.cprogramming.com/source/jtxor.cpp)

you could modify that to meet your own needs