#include <cdio/types.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | cdio_log_handler_t )(cdio_log_level_t level, const char message[]) |
Enumerations | |
enum | cdio_log_level_t { CDIO_LOG_DEBUG = 1, CDIO_LOG_INFO, CDIO_LOG_WARN, CDIO_LOG_ERROR, CDIO_LOG_ASSERT } |
Functions | |
cdio_log_handler_t | cdio_log_set_handler (cdio_log_handler_t new_handler) |
void | cdio_log (cdio_log_level_t level, const char format[],...) GNUC_PRINTF(2 |
void void | cdio_debug (const char format[],...) GNUC_PRINTF(1 |
void void void | cdio_info (const char format[],...) GNUC_PRINTF(1 |
void void void void | cdio_warn (const char format[],...) GNUC_PRINTF(1 |
void void void void void | cdio_error (const char format[],...) GNUC_PRINTF(1 |
Variables | |
cdio_log_level_t | cdio_loglevel_default |
|
This type defines the signature of a log handler. For every message being logged, the handler will receive the log level and the message string.
|
|
|
Handle a debugging message.
|
|
Handle an error message. Execution is terminated.
|
|
Handle an informative message.
|
|
Handle an message with the given log level.
|
|
Set a custom log handler for libcdio. The return value is the log handler being replaced. If the provided parameter is NULL, then the handler will be reset to the default handler.
|
|
Handle a warning message.
|
|
The place to save the preference concerning how much verbosity is desired. This is used by the internal default log handler, but it could be use by applications which provide their own log handler. |