Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
Informative logging API (aud_log(), aud_debug() and friends). More...
#include <glib.h>
#include <stdarg.h>
Go to the source code of this file.
Defines | |
#define | AUD_LOG_CTX NULL |
#define | aud_message(...) aud_log(AUD_LOG_CTX, AUD_LOG_INFO, __VA_ARGS__) |
Convenience wrapper message macros. | |
#define | aud_warning(...) aud_log(AUD_LOG_CTX, AUD_LOG_WARNING, __VA_ARGS__) |
Convenience wrapper message macros. | |
#define | AUDDBG(...) |
Debug message macro and transitional aliases. | |
#define | aud_debug(...) |
Debug message macro and transitional aliases. | |
#define | AUDDBG_I(...) |
Extra debug messages (more noisy, needs DEBUG > 1) | |
Enumerations | |
enum | AudLogLevel { AUD_LOG_NONE = 0, AUD_LOG_FATAL_ERROR, AUD_LOG_ERROR, AUD_LOG_WARNING, AUD_LOG_INFO, AUD_LOG_DEBUG, AUD_LOG_DEBUG_INT, AUD_LOG_ALL } |
Log levels from least noisy to noisiest. More... | |
Functions | |
gint | aud_log_init (const gchar *filename, const gchar *mode, gint level) |
Initialize logging subsystem. | |
void | aud_log_close (void) |
Shut down the logging subsystem. | |
void | aud_log_add_thread_context (GThread *thread, const gchar *name) |
Add symbolic name for given thread identifier. | |
void | aud_log_delete_thread_context (GThread *thread) |
Removes identifier for thread, if present. | |
void | aud_logv (const gchar *ctx, gint level, const gchar *fmt, va_list args) __attribute__((format(printf |
void void | aud_log (const gchar *ctx, gint level, const gchar *fmt,...) __attribute__((format(printf |
void void void | aud_log_line (const gchar *ctx, gint level, const gchar *file, const gchar *func, gint line, const gchar *fmt,...) __attribute__((format(printf |
Informative logging API (aud_log(), aud_debug() and friends).
Functions for logfile handling, log contexts, logging levels, etc. Also functions and macros for debug-level stuff.
Definition in file log.h.
#define aud_debug | ( | ... | ) |
#define aud_message | ( | ... | ) | aud_log(AUD_LOG_CTX, AUD_LOG_INFO, __VA_ARGS__) |
#define aud_warning | ( | ... | ) | aud_log(AUD_LOG_CTX, AUD_LOG_WARNING, __VA_ARGS__) |
#define AUDDBG | ( | ... | ) |
Debug message macro and transitional aliases.
Definition at line 97 of file log.h.
Referenced by aud_quit(), audacious_rc_init(), autosave_cb(), cd_chardet_to_utf8(), check_opened(), effect_insert(), effect_plugin_enable(), effect_remove(), effect_start(), effect_start_cb(), file_find_decoder(), general_load(), general_unload(), iface_plugin_set_active(), import_winamp_eqf(), init_dbus(), interface_get_default(), interface_hide_filebrowser(), interface_hide_jump_to_track(), interface_run_filebrowser(), interface_show_about_window(), interface_show_error_message(), interface_show_jump_to_track(), interface_show_prefs_window(), interface_toggle_repeat(), interface_toggle_shuffle(), interface_toggle_visibility(), main(), module_load(), module_prune(), module_register(), mpris_player_init(), mpris_tracklist_init(), on_font_btn_font_set(), output_probe_func(), output_set_replaygain_info(), plugin2_dispose(), plugin_prune(), plugin_register(), plugin_system_cleanup(), probe_by_content(), probe_by_extension(), probe_by_mime(), probe_by_scheme(), probe_func(), probe_func_fast(), shut_down(), vis_load(), vis_start(), vis_stop(), and vis_unload().
#define AUDDBG_I | ( | ... | ) |
enum AudLogLevel |
Log levels from least noisy to noisiest.
void void aud_log | ( | const gchar * | ctx, |
gint | level, | ||
const gchar * | fmt, | ||
... | |||
) |
void aud_log_add_thread_context | ( | GThread * | thread, |
const gchar * | name | ||
) |
void aud_log_close | ( | void | ) |
void aud_log_delete_thread_context | ( | GThread * | thread | ) |
Removes identifier for thread, if present.
If thread had not been added in first place (via aud_log_add_thread_context()), a warning is logged instead.
[in] | thread | Pointer to a GThread structure of the thread. |
void void void aud_log_line | ( | const gchar * | ctx, |
gint | level, | ||
const gchar * | file, | ||
const gchar * | func, | ||
gint | line, | ||
const gchar * | fmt, | ||
... | |||
) |
void aud_logv | ( | const gchar * | ctx, |
gint | level, | ||
const gchar * | fmt, | ||
va_list | args | ||
) |