Often, when running a program in console, one needs to save all its output
to a file.
Very often, such a program writes both to the standard output (stdout)
and to the standard error output (stderr).
For example, by default, in a Python program the print function writes to
stdout and the functions of the logging module to stderr.
Therefore, one needs to redirect both stdout and stderr to the same file.