SFML community forums

Help => General => Topic started by: svrtgujbhk on June 05, 2011, 10:12:24 am

Title: Getting the error message string
Post by: svrtgujbhk on June 05, 2011, 10:12:24 am
Is there a way to get the error message generated by SFML? I'd like to pass it to the Logger, instead of just having ti printed to the console.
Title: Getting the error message string
Post by: Laurent on June 05, 2011, 10:22:46 am
SFML messages are sent to std::cerr, so you can redirect it to whatever you like by changing its internal streambuf (see the rdbuf function).
Title: Getting the error message string
Post by: svrtgujbhk on June 05, 2011, 01:50:06 pm
Thank you for your quick help.