1 #ifndef CARMA_DBMS_SYSLOG2DBMSCONVERSIONS_H
2 #define CARMA_DBMS_SYSLOG2DBMSCONVERSIONS_H
74 static const std::string UNKNOWN_STR (
"UNKNOWN" );
75 static const std::string NOTSET_STR (
"NOTSET" );
76 static const std::string DEBUG_STR (
"DEBUG" );
77 static const std::string INFO_STR (
"INFO" );
78 static const std::string NOTICE_STR (
"NOTICE" );
79 static const std::string WARN_STR (
"WARN" );
80 static const std::string ERROR_STR (
"ERROR" );
81 static const std::string ALERT_STR (
"ALERT" );
82 static const std::string CRIT_STR (
"CRIT" );
83 static const std::string FATAL_STR (
"FATAL" );
unsigned short dbPriorityType
Database priority level.
dbPriorityType priority2DB(const std::string &priority)
convert the syslog priority string to the value which is written in the db
std::map< const dbPriorityType, const std::string > PriorityMap
A map of DB priority levels -> syslog priority (string) levels.
const std::string & db2Priority(const dbPriorityType dbPriority)
convert a db value to its syslog priority string