adds output piping to logger