add resize in logger