Logging in C for RAD

The following are the RAD logging functions in the C language:

void rad_log(rad_logtype_t type, const char * format, ...);

Logs a message with type and format to the rad log. If the type is a lower level than the rad logging level, then the message is discarded.

void rad_log_alloc

Logs a memory allocation failure with log level RL_FATAL.

rad_logtype_t rad_get_loglevel

Returns the logging level.