Transactional logging API