diff options
author | louiz’ <louiz@louiz.org> | 2017-09-09 17:21:51 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-09-09 17:21:51 +0200 |
commit | e217a1978451ca0153fee36618ff4129ffcd2804 (patch) | |
tree | 83f2b136efe614456500ce536a04533ac8e1040d /src | |
parent | bfcf29451787d10c747ad79cb3fd177ac86e9cf1 (diff) | |
download | biboumi-e217a1978451ca0153fee36618ff4129ffcd2804.tar.gz biboumi-e217a1978451ca0153fee36618ff4129ffcd2804.tar.bz2 biboumi-e217a1978451ca0153fee36618ff4129ffcd2804.tar.xz biboumi-e217a1978451ca0153fee36618ff4129ffcd2804.zip |
Fix the build without systemd, by adding a few define
Diffstat (limited to 'src')
-rw-r--r-- | src/logger/logger.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logger/logger.hpp b/src/logger/logger.hpp index 176726e..a99648c 100644 --- a/src/logger/logger.hpp +++ b/src/logger/logger.hpp @@ -28,6 +28,10 @@ # define SD_INFO "[INFO]: " # define SD_WARNING "[WARNING]: " # define SD_ERR "[ERROR]: " +# define LOG_ERR 3 +# define LOG_WARNING 4 +# define LOG_INFO 6 +# define LOG_DEBUG 7 #endif // Macro defined to get the filename instead of the full path. But if it is @@ -111,6 +115,7 @@ namespace logging_details else { #endif + (void)syslog_level; static const char* priority_names[] = {"DEBUG", "INFO", "WARNING", "ERROR"}; auto& os = Logger::instance()->get_stream(level); os << '[' << priority_names[level] << "]: " << src_file << ':' << line << ":\t"; |