libvisual
0.5.0
|
Classes | |
struct | VisLogSource |
Contains information on the source of a log message. More... | |
Macros | |
#define | visual_log(severity,...) |
Logs a message. More... | |
Typedefs | |
typedef void(* | VisLogHandlerFunc )(VisLogSeverity severity, const char *message, const VisLogSource *source, void *user_data) |
Function signature for log message handlers. More... | |
Enumerations | |
enum | VisLogSeverity { VISUAL_LOG_DEBUG, VISUAL_LOG_INFO, VISUAL_LOG_WARNING, VISUAL_LOG_ERROR, VISUAL_LOG_CRITICAL, VISUAL_LOG_NUM_LEVELS } |
Message severity levels. More... | |
Functions | |
void | visual_log_set_verbosity (VisLogSeverity level) |
Sets the log verbosity level. More... | |
VisLogSeverity | visual_log_get_verbosity (void) |
Returns the current log verbosity level. More... | |
void | visual_log_set_handler (VisLogSeverity severity, VisLogHandlerFunc handler, void *user_data) |
Registers a log message handler for a severity level. More... | |
void | _lv_log (VisLogSeverity severity, const char *file, int line, const char *funcname, const char *fmt,...) LV_CHECK_PRINTF_FORMAT(5 |
#define visual_log | ( | severity, | |
... | |||
) |
Logs a message.
severity | Message severity level |
format | printf format string of the log message |
... | Format string arguments |
Definition at line 106 of file lv_log.h.
Referenced by LV::PluginRegistry::add_path(), LV::Video::allocate_buffer(), LV::Video::convert_depth(), LV::System::init(), LV::Audio::input(), LV::Input::load(), LV::Morph::load(), LV::Actor::load(), LV::Input::run(), LV::Actor::run(), LV::Video::scale(), LV::Actor::video_negotiate(), visual_mem_malloc(), and visual_plugin_realize().
typedef void(* VisLogHandlerFunc)(VisLogSeverity severity, const char *message, const VisLogSource *source, void *user_data) |
Function signature for log message handlers.
severity | Message severity level |
message | Message to log |
source | Information on the message origin |
user_data | User data passed to message handler |
enum VisLogSeverity |
Message severity levels.
VisLogSeverity visual_log_get_verbosity | ( | void | ) |
void visual_log_set_handler | ( | VisLogSeverity | severity, |
VisLogHandlerFunc | handler, | ||
void * | user_data | ||
) |
void visual_log_set_verbosity | ( | VisLogSeverity | level | ) |