Nested transaction library, used to enhance existing logging libraries