summaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-22 03:34:59 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-22 03:34:59 +0200
commit1c8d382fac3101fbaa89950d0a19f65761b08d26 (patch)
tree8d06536b1c6cdc7dadcd3e8dd5f9d56708dd45ff /src/log.h
parent0e3407d9aa912ef6e110f3326de17744af9e0ad6 (diff)
downloadfastd-1c8d382fac3101fbaa89950d0a19f65761b08d26.tar
fastd-1c8d382fac3101fbaa89950d0a19f65761b08d26.zip
Move fastd_loglevel_t to log.h
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 0fe6b67..b64971e 100644
--- a/src/log.h
+++ b/src/log.h
@@ -32,7 +32,17 @@
#include <string.h>
-#define FASTD_DEFAULT_LOG_LEVEL LL_VERBOSE
+typedef enum fastd_loglevel {
+ LL_UNSPEC = 0,
+ LL_FATAL,
+ LL_ERROR,
+ LL_WARN,
+ LL_INFO,
+ LL_VERBOSE,
+ LL_DEBUG,
+ LL_DEBUG2,
+ LL_DEFAULT = LL_VERBOSE,
+} fastd_loglevel_t;
void fastd_logf(const fastd_loglevel_t level, const char *format, ...);