Demo logging rewriter