Top |
const char * | ratp_log_level_str () |
void | (*ratp_log_handler_t) () |
void | ratp_log_set_level () |
ratp_log_level_t | ratp_log_get_level () |
void | ratp_log_set_handler () |
This section defines the methods and types that allow the user to configure how the library logging is exposed.
const char *
ratp_log_level_str (ratp_log_level_t level
);
Gets a description for the given ratp_log_level_t.
void (*ratp_log_handler_t) (ratp_log_level_t level
,unsigned long tid
,const char *message
);
Logging handler.
level |
the ratp_log_level_t. |
[in] |
tid |
thread ID where the log message was generated. |
[in] |
message |
the log message. |
[in] |
void
ratp_log_set_level (ratp_log_level_t level
);
Sets the logging level.
By default the logging level is RATP_LOG_LEVEL_ERROR
.
ratp_log_level_t
ratp_log_get_level (void
);
Gets the current logging level configured.
void
ratp_log_set_handler (ratp_log_handler_t handler
);
Set logging handler.
This method would be usually called once before any other operation with the
library, e.g. even before ratp_init()
.