replaces all puts with puts2log