|
pnmixer
Volume mixer for the system tray
|
Logging support. More...
#include <glib.h>
Go to the source code of this file.
Macros | |
| #define | ERROR(...) log_msg(LOG_ERROR, __FILE__, __VA_ARGS__) |
| #define | WARN(...) log_msg(LOG_WARN, __FILE__, __VA_ARGS__) |
| #define | DEBUG(...) log_msg(LOG_DEBUG, __FILE__, __VA_ARGS__) |
Enumerations | |
| enum | log_level { LOG_ERROR, LOG_WARN, LOG_DEBUG } |
Functions | |
| void | log_msg_v (enum log_level level, const char *file, const char *format, va_list args) |
| void | log_msg (enum log_level level, const char *file, const char *format,...) |
Variables | |
| gboolean | want_debug |
Logging support.
Logging support. Provides various macros to print debug, warning & error messages. Debug messages are enabled with a command-line argument. This should be included by every file.
Definition in file support-log.h.
Definition at line 38 of file support-log.h.
Definition at line 36 of file support-log.h.
Definition at line 37 of file support-log.h.
| enum log_level |
| Enumerator | |
|---|---|
| LOG_ERROR | |
| LOG_WARN | |
| LOG_DEBUG | |
Definition at line 27 of file support-log.h.
| void log_msg | ( | enum log_level | level, |
| const char * | file, | ||
| const char * | format, | ||
| ... | |||
| ) |
Log a message.
| level | the log level. |
| file | the file name. |
| format | the message format. See the printf() documentation. |
| ... | the parameters to insert into the format string. |
Definition at line 84 of file support-log.c.
| void log_msg_v | ( | enum log_level | level, |
| const char * | file, | ||
| const char * | format, | ||
| va_list | args | ||
| ) |
Log a message.
| level | the log level. |
| file | the file name. |
| format | the message format. See the printf() documentation. |
| args | the parameters to insert into the format string. |
Definition at line 49 of file support-log.c.
| gboolean want_debug |
Global variable to control whether we want debugging. This variable is initialized in main() and depends on the '–debug'/'-d' command line argument.
Definition at line 38 of file support-log.c.
1.8.14