This output text will be displayed on cout, then redirected to a log file using streambufs. Note that all output is written to cout. Redirection occurs by giving cout the streambuf of the log file