transform log statements