summaryrefslogtreecommitdiff
path: root/toxcore/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/logger.h')
-rw-r--r--toxcore/logger.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/logger.h b/toxcore/logger.h
index acd21fb8..38cc0ac9 100644
--- a/toxcore/logger.h
+++ b/toxcore/logger.h
@@ -32,17 +32,17 @@
32#define MIN_LOGGER_LEVEL LOG_INFO 32#define MIN_LOGGER_LEVEL LOG_INFO
33#endif 33#endif
34 34
35typedef enum { 35typedef enum Logger_Level {
36 LOG_TRACE, 36 LOG_TRACE,
37 LOG_DEBUG, 37 LOG_DEBUG,
38 LOG_INFO, 38 LOG_INFO,
39 LOG_WARNING, 39 LOG_WARNING,
40 LOG_ERROR 40 LOG_ERROR
41} LOGGER_LEVEL; 41} Logger_Level;
42 42
43typedef struct Logger Logger; 43typedef struct Logger Logger;
44 44
45typedef void logger_cb(void *context, LOGGER_LEVEL level, const char *file, int line, 45typedef void logger_cb(void *context, Logger_Level level, const char *file, int line,
46 const char *func, const char *message, void *userdata); 46 const char *func, const char *message, void *userdata);
47 47
48/** 48/**
@@ -72,7 +72,7 @@ void logger_callback_log(Logger *log, logger_cb *function, void *context, void *
72 * assertion failure otherwise. 72 * assertion failure otherwise.
73 */ 73 */
74void logger_write( 74void logger_write(
75 const Logger *log, LOGGER_LEVEL level, const char *file, int line, const char *func, 75 const Logger *log, Logger_Level level, const char *file, int line, const char *func,
76 const char *format, ...) GNU_PRINTF(6, 7); 76 const char *format, ...) GNU_PRINTF(6, 7);
77 77
78 78