Convert print statement to log statement.