Sounds like a good way to route the debug information to some other place indeed. Although just reverting the std::cerr information to your own stream could be a possibility too?<div><br></div><div>Something along the line of:</div>

<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color: rgb(39, 61, 73); font-size: 12px; ">std::ofstream out(...);<br>std::streambuf orig = std::cerr.rdbuf(out.rdbuf());<br>

... // use redirected cerr<br>std::cerr.rdbuf(orig);</span></div><div><br></div><div>as exampled in this sourcecode:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://groups.google.com/group/alt.sources/msg/bb4204134e9956a0?pli=1">http://groups.google.com/group/alt.sources/msg/bb4204134e9956a0?pli=1</a></div>

<div><br clear="all">Greets,<div>  Martijn van Rheenen</div><br>
<br><br><div class="gmail_quote">On Wed, Apr 20, 2011 at 1:02 PM, Ivar Eskerud Smith <span dir="ltr">&lt;<a href="mailto:ivar_eskerud@hotmail.com">ivar_eskerud@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div>
I have adressed this issue before, but with little response so thought I`d give it another try...<br>I think the debug information in taglib should be made available, and not just sent to std::cerr. This information could be very useful. It should be the program that uses taglib that should decide where to show/send this information. A singleton class used in the &quot;debug&quot; function to log this information could be an option.<br>

<br>Comments?<br><br>regards, Ivar<br>                                               </div>
<br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>