<div class="gmail_quote">On Sat, Jun 6, 2009 at 1:52 AM, Gennadiy Rozental <span dir="ltr">&lt;<a href="mailto:rogeeff@gmail.com">rogeeff@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Suraj Gupta, Gurgaon wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>
<br>
 <br>
Memory leak information is displayed onto the console window but I want to write the memory leak information in the log file I am creating? Could you please let me know how can I achieve this?<br>
</blockquote>
<br></div>
I believe your only option at the moment is to redirect standard output/error streams. Boost.Test used functionality provided by MS runtime and has very little configuration power over it.<br>
<br>
Gennadiy<br>
</blockquote></div><br>I haven&#39;t taken a look at the Boost.Test memory leak info code yet so forgive me if I&#39;m speaking out of context, but since you mention MS runtime I assume you&#39;re referring to the _CrtDebug functions.  Take a look at _CrtSetDbgFlag with option _CRTDBG_MODE_FILE and another function _CrtSetReportFile.  If you want to support multiple output streams, you might be able to use a handle to a named pipe in _CrtSetReportFile and then monitor the named pipe yourself and multiplex it.  This doesn&#39;t help the original poster very much, but might help enhancing the library.<br>

