When you get a buttload of output from something, it’s nice to tee it to a file so you can dig through it.

But tee only captures STDOUT.

To combine STDOUT and STDERR, like you see in your terminal

yourcommand 2>&1 | tee out.log