summaryrefslogtreecommitdiffstats
path: root/src/Log.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-12 22:23:37 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-12 22:23:37 +0100
commit27de21b5de1a9d0ac728a4b598ad2e5824fc500a (patch)
treef12f71ac4c709a42769196cb8222f906c72f4c20 /src/Log.h
parentf1874c259259a039227517a9cd58d7017a1bef34 (diff)
downloaddabmux-27de21b5de1a9d0ac728a4b598ad2e5824fc500a.tar.gz
dabmux-27de21b5de1a9d0ac728a4b598ad2e5824fc500a.tar.bz2
dabmux-27de21b5de1a9d0ac728a4b598ad2e5824fc500a.zip
improve debugging print, add print to stderr
Diffstat (limited to 'src/Log.h')
-rw-r--r--src/Log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Log.h b/src/Log.h
index d28f6c0..5c8c4b3 100644
--- a/src/Log.h
+++ b/src/Log.h
@@ -38,12 +38,16 @@
#include <list>
#include <stdexcept>
#include <string>
+#include <map>
#define SYSLOG_IDENT "CRC-DABMUX"
#define SYSLOG_FACILITY LOG_LOCAL0
enum log_level_t {debug = 0, info, warn, error, alert, emerg};
+const std::string levels_as_str[] =
+ { " ", " ", "WARN ", "ERROR", "ALERT", "EMERG"} ;
+
/** Abstract class all backends must inherit from */
class LogBackend {
public: