dtype repair to logger
This commit is contained in:
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ protected:
|
||||
/// TODO Expand to detect when a directory path is supplied for units_path or plan_path and import all Tasks and Units.
|
||||
///
|
||||
/// \param filename - The filename to load the configuration from.
|
||||
Conf::Conf( std::string filename, int LOG_LEVEL ): JSON_Loader( LOG_LEVEL ), slog( LOG_LEVEL, "examplar::conf" )
|
||||
Conf::Conf( std::string filename, int LOG_LEVEL ): JSON_Loader( LOG_LEVEL ), slog( LOG_LEVEL, "examplar::test" )
|
||||
{
|
||||
this->LOG_LEVEL = LOG_LEVEL;
|
||||
|
||||
@@ -74,7 +74,7 @@ Conf::Conf( std::string filename, int LOG_LEVEL ): JSON_Loader( LOG_LEVEL ), slo
|
||||
this->override_context = false;
|
||||
|
||||
try {
|
||||
// load the conf file.
|
||||
// load the test file.
|
||||
this->load_json_file( filename );
|
||||
}
|
||||
catch (std::exception) {
|
||||
|
||||
Reference in New Issue
Block a user