So we have our own log function that already use, it has groups and loglevel (error, warn, info, debug, …), and is able to output to different targets (file, console, …).
I would like to use
SDL_LogSetOutputFunction to make SDL logs go through our system (adding a SDL group for them). Problem is our codebase is in C++ and I am a bit unsure how to tie things.
I am also unsure exactly how the function SDL expect should look. Has anyone used it and has any guidance to offer?