How to use tee with stdout and stderr?

I have been doing this:

make xyz &> xyz.log &; tail -f xyz.log

The problem with this is that you never can ge sure when "make xyz" is done.

How can I pipe both stderr and stdout into tee so both stderr and stdout are copied both to the display and to the log file?

Thanks,
Siegfried

make xyz 2>&1 | tee xyz.log

for showing and redirecting at the same time, you can use:

./program 2>&1 | tee program.log

in the file program.log, the statement stores stdout and stderr as well.

There's no need to provide the same answer three years after the question was asked.