<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
The easiest way would of course be to redirect std::cerr, but I have found this impossible when using taglib as a dll (on windows) . Redirecting std::cerr as you specified within my own program works fine, but it does not redirect the std::cerr coming from taglib. I have discussed this redirecting issue on several c++ forums, and it seems like there is no way of doing that on windows.<br><br>-Ivar<br><br><hr id="stopSpelling">From: rheenen@gmail.com<br>Date: Wed, 20 Apr 2011 13:12:13 +0200<br>Subject: Re: debug information<br>To: taglib-devel@kde.org<br><br>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><span class="ecxApple-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><a href="http://groups.google.com/group/alt.sources/msg/bb4204134e9956a0?pli=1" target="_blank">http://groups.google.com/group/alt.sources/msg/bb4204134e9956a0?pli=1</a></div>

<div><br clear="all">Greets,<div>&nbsp;&nbsp;Martijn van Rheenen</div><br>
<br><br><div class="ecxgmail_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="ecxgmail_quote" style="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 "debug" 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>
<br>_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel                                               </body>
</html>