A simple AST transformation for logging messages