Defines | |
| #define | GF_LOG(_log_level, _log_tools, __args) |
| Message logging. | |
Typedefs | |
| typedef void(* | gf_log_cbk )(void *cbck, u32 log_level, u32 log_tool, const char *fmt, va_list vlist) |
| Log Message Callback. | |
Enumerations | |
| enum | { GF_LOG_ERROR = 1, GF_LOG_WARNING, GF_LOG_INFO, GF_LOG_DEBUG } |
| enum | { GF_LOG_CORE = 1, GF_LOG_CODING = 1<<1, GF_LOG_CONTAINER = 1<<2, GF_LOG_NETWORK = 1<<3, GF_LOG_RTP = 1<<4, GF_LOG_AUTHOR = 1<<5, GF_LOG_SYNC = 1<<6, GF_LOG_CODEC = 1<<7, GF_LOG_PARSER = 1<<8, GF_LOG_MEDIA = 1<<9, GF_LOG_SCENE = 1<<10, GF_LOG_SCRIPT = 1<<11, GF_LOG_INTERACT = 1<<12, GF_LOG_COMPOSE = 1<<13, GF_LOG_CACHE = 1<<14, GF_LOG_MMIO = 1<<15, GF_LOG_RTI = 1<<16, GF_LOG_SMIL = 1<<17 } |
Functions | |
| void | gf_log_set_level (u32 level) |
| Log level assignment. | |
| void | gf_log_set_tools (u32 tools) |
| Log modules assignment. | |
| gf_log_cbk | gf_log_set_callback (void *usr_cbk, gf_log_cbk cbk) |
| Log overwrite. | |
| void | gf_log (const char *fmt,...) |
| void | gf_log_lt (u32 ll, u32 lt) |
| u32 | gf_log_get_level () |
| u32 | gf_log_get_tools () |
| #define GF_LOG | ( | _log_level, | |||
| _log_tools, | |||||
| __args | ) |
Macro for logging messages. Usage is GF_LOG(log_lev, log_module, (fmt, ...)). The log function is only called if log filtering allows it. This avoids fetching logged parameters when the tool is not being logged.
| typedef void(* gf_log_cbk)(void *cbck, u32 log_level, u32 log_tool, const char *fmt, va_list vlist) |
The gf_log_cbk type is the type for the callback of the gf_log_set_callback function. By default all logs are redirected to stdout
| cbck | Opaque user data. | |
| log_level | level of the log. This value is not guaranteed in multi-threaded context. | |
| log_tool | tool emitting the log. This value is not guaranteed in multi-threaded context. | |
| fmt | message log format. | |
| vlist | message log param. |
| anonymous enum |
| anonymous enum |
GPAC Log tools
These flags describes which sub-part of GPAC generates the log and are used when filtering logs
| void gf_log_set_level | ( | u32 | level | ) |
Sets the level used for log filtering. By default no log is performed
| level | log level used. |
| void gf_log_set_tools | ( | u32 | tools | ) |
Sets the modules to be checked for log filtering. By default no modules are logged.
| tools | log tools filtered. This is an OR'ed combinaison of log module flags |
| gf_log_cbk gf_log_set_callback | ( | void * | usr_cbk, | |
| gf_log_cbk | cbk | |||
| ) |
Assigns a user-defined callback for printing log messages. By default all logs are redirected to stdout
| usr_cbk | Opaque user data | |
| cbk | callback log function |