debug information

Ivar Eskerud Smith ivar_eskerud at
Wed Apr 20 16:55:18 CEST 2011

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.


From: rheenen at
Date: Wed, 20 Apr 2011 13:12:13 +0200
Subject: Re: debug information
To: taglib-devel at

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?
Something along the line of:

std::ofstream out(...);
std::streambuf orig = std::cerr.rdbuf(out.rdbuf());

... // use redirected cerr
as exampled in this sourcecode:

Greets,  Martijn van Rheenen

On Wed, Apr 20, 2011 at 1:02 PM, Ivar Eskerud Smith <ivar_eskerud at> wrote:

I have adressed this issue before, but with little response so thought I`d give it another try...
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.


regards, Ivar


taglib-devel mailing list

taglib-devel at

taglib-devel mailing list
taglib-devel at 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the taglib-devel mailing list