dtype repair to logger

This commit is contained in:
Master
2020-06-20 20:25:45 -04:00
parent 839c3d398a
commit d636ece26a
8 changed files with 11 additions and 9 deletions

View File

@@ -7,10 +7,10 @@
Logger::Logger( int LOG_LEVEL, std::string mask )
{
this->LOG_LEVEL = LOG_LEVEL;
this->mask = mask.c_str();
this->mask = mask;
setlogmask( LOG_UPTO( this->LOG_LEVEL ) );
openlog( this->mask, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_PERROR | LOG_LOCAL1 );
openlog( this->mask.c_str(), LOG_CONS | LOG_PID | LOG_NDELAY, LOG_PERROR | LOG_LOCAL1 );
}

View File

@@ -13,9 +13,9 @@
#include <sstream>
enum L_LVL {
E_INFO,
E_FATAL,
E_WARN,
E_INFO,
E_DEBUG
};
@@ -26,7 +26,7 @@ public:
private:
int LOG_LEVEL;
const char * mask;
std::string mask;
std::string get_8601();
};