xxxxxxxxxx
# Purpose: redirect output of a command to standard output as well as other
# output files.
commnd -> tee -> stdout
↓
file.log
# example:
pytest tests/ --log-cli-level=INFO | tee pytest.log
# prints to standard output(terminal) as well as your log file!