debug information
Ivar Eskerud Smith
ivar_eskerud at hotmail.com
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.
-Ivar
From: rheenen at gmail.com
Date: Wed, 20 Apr 2011 13:12:13 +0200
Subject: Re: debug information
To: taglib-devel at kde.org
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
std::cerr.rdbuf(orig);
as exampled in this sourcecode:http://groups.google.com/group/alt.sources/msg/bb4204134e9956a0?pli=1
Greets, Martijn van Rheenen
On Wed, Apr 20, 2011 at 1:02 PM, Ivar Eskerud Smith <ivar_eskerud at hotmail.com> 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.
Comments?
regards, Ivar
_______________________________________________
taglib-devel mailing list
taglib-devel at kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
_______________________________________________
taglib-devel mailing list
taglib-devel at kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110420/133041ca/attachment.htm
More information about the taglib-devel
mailing list