From bb85754dc0aa7d183b745e4d6e3bced9c181b86f Mon Sep 17 00:00:00 2001 From: Phanes Date: Sun, 23 Jan 2022 22:55:08 -0500 Subject: [PATCH] removed syslog --- src/Logger/Logger.cpp | 5 ----- src/Logger/Logger.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/Logger/Logger.cpp b/src/Logger/Logger.cpp index 95469f1..82849b8 100644 --- a/src/Logger/Logger.cpp +++ b/src/Logger/Logger.cpp @@ -24,10 +24,6 @@ Logger::Logger( int LOG_LEVEL, std::string mask ) { this->LOG_LEVEL = LOG_LEVEL; this->mask = mask; - - setlogmask( LOG_UPTO( this->LOG_LEVEL ) ); - openlog( "rex", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_PERROR | LOG_LOCAL1 ); - } void Logger::log( int LOG_LEVEL, std::string msg ) @@ -45,7 +41,6 @@ void Logger::log( int LOG_LEVEL, std::string msg ) } std::string s_msg = "[" + ERR + "] " + msg; - syslog( this->LOG_LEVEL, s_msg.c_str() ); if ( LOG_LEVEL == E_FATAL | LOG_LEVEL == E_WARN ) { diff --git a/src/Logger/Logger.h b/src/Logger/Logger.h index c1e223e..2984494 100644 --- a/src/Logger/Logger.h +++ b/src/Logger/Logger.h @@ -22,7 +22,6 @@ #ifndef REX_LOGGER_H #define REX_LOGGER_H -#include #include #include #include