make logger dry