Transactional logging system