Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Getting the error message string  (Read 1315 times)

0 Members and 1 Guest are viewing this topic.

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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).
Laurent Gomila - SFML developer

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
Getting the error message string
« Reply #2 on: June 05, 2011, 01:50:06 pm »
Thank you for your quick help.

 

anything