Add bash dual-output logger snippet