#pragma section-numbers off #pragma camelcase off = SDL_LogSetOutputFunction = Use this function to replace the default log output function with one of your own. <> == Syntax == {{{#!highlight cpp void SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void* userdata) }}} == Function Parameters == ||'''callback'''||the function to call instead of the default; see [[#Remarks|Remarks]] for details|| ||'''userdata'''||a pointer that is passed to '''callback'''|| == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == The function prototype for '''callback''' is: {{{#!highlight cpp void SDL_LogOutputFunction(void* userdata, int category, SDL_LogPriority priority, const char* message) }}} . where its parameters are: ||`userdata`||what was passed as '''userdata''' to [[SDL_LogSetOutputFunction]]()|| ||`category`||the category of the message; see [[#category|Remarks]] for details|| ||`priority`||the priority of the message; see [[#priority|Remarks]] for details|| ||`message`||the message being output|| <> The `category` will be one of: <> <> The `priority` will be one of: <> == Related Functions == .[[SDL_LogGetOutputFunction]] ---- [[CategoryAPI]], [[CategoryLog]]