It first depends on which Tandy computer and which DOS is used. I think not every DOS provides such a possibility.
Usually some DOSes are providing a function named 'ROUTE'. Not all DOSes allow routing to a file but LDOS does.
The following example is for LDOS 5.1.x.
I haven't used this feature...