Top |
const char * | ratp_barebox_log_level_str () |
void | (*ratp_barebox_log_handler_t) () |
void | ratp_barebox_log_set_level () |
ratp_barebox_log_level_t | ratp_barebox_log_get_level () |
void | ratp_barebox_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_barebox_log_level_str (ratp_barebox_log_level_t level
);
Gets a description for the given ratp_barebox_log_level_t.
void (*ratp_barebox_log_handler_t) (ratp_barebox_log_level_t level
,unsigned long tid
,const char *message
);
Logging handler.
void
ratp_barebox_log_set_level (ratp_barebox_log_level_t level
);
Sets the logging level.
By default the logging level is RATP_BAREBOX_LOG_LEVEL_ERROR
.
ratp_barebox_log_level_t
ratp_barebox_log_get_level (void
);
Gets the current logging level configured.
void
ratp_barebox_log_set_handler (ratp_barebox_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()
.