Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Getting the error message string
Print
Pages: [
1
]
Author
Topic: Getting the error message string (Read 1314 times)
0 Members and 1 Guest are viewing this topic.
svrtgujbhk
Newbie
Posts: 20
Getting the error message string
«
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Getting the error message string
«
Reply #1 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).
Logged
Laurent Gomila - SFML developer
svrtgujbhk
Newbie
Posts: 20
Getting the error message string
«
Reply #2 on:
June 05, 2011, 01:50:06 pm »
Thank you for your quick help.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Getting the error message string