do logging right