# TLog_Iter_Dualout

> This sample demonstrates the use of transaction logging iteration using the `MCO_TRANSLOG_DUAL_OUT` flag which makes it possible to copy the log to a file while it is also transferred via a pipe and iterated by a reader application. The log file saved in this manner may be used to restore the database in case of an application failure or to iterate the log once again by a reader application using functions `mco_translog_iterate()` and/or `mco_translog_play()`.

### How to Run

> See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the `\target\bin` directory:

>         tlogiterdualout

> But it is more instructive to run it in your development environment debugger, stepping through the code.

Related Topics