move puts to logger