piping to logger