Added output loggin to whenever and sample task