I started thinking of something along those lines, then remember how many times we wrote a logging system for C++ in a previous job, splashed some cold water on my face and kept going.

But yeah, a little cleanup would be good. In a previous version I had flags like those that I used to remove keydir logging and leave only get/put/deletes, etc.  That would be useful.