remove double newline in stdout logger